Run batch command in jenkins

I’m running jenkins on windows 7 as a service.

I’d like to run a very simple job which will start my firefox. (for example)

  • Ignore file in Subversion removes old values from svn:ignore property
  • How can I retrieve environment variables(Jenkins) in java
  • How to prevent auto-closing of Tomcat on starting from Jenkins job?
  • TortoiseSVN command keeps open processes
  • How to run command in windows batch Command in jenkins
  • Write a batch script to edit text in a .cs file
  • I configured a free style project and set up the “Execute windows batch command” option.

    Here i have tried to insert couple of command which they all failed.

    Commands like “echo hello” or other native command working as expected.

    But command like “explorer ” – should open the mentioned directory, or “c:\firefox.lnk” (should open firefox) are not working.
    The jenkins seems to be running but after while the job fails with an error.

    How can i run these actions?


  • Jenkins execute action after delete build
  • Git clone on jenkins master, copy to slave
  • TFS 2008/2010 vs Jenkins for Continuous Integration
  • Gcloud preview app can't parse my yaml
  • How can I take last 20 lines from the $BUILD_LOG variable?
  • How to use the build cause in build name?
  • One Solution collect form web for “Run batch command in jenkins”

    This might be a path issue, check if the System user has ‘explorer’ in its path. (see

    Additionally: Windows 7 does not allow service processes to create a UI. See this other stackoverflow question: Service starting a process wont show GUI C#

    Git Baby is a git and github fan, let's start git clone.