Have you tried defining a the TMP or TEMP (not sure which it would be) environment variable in the Jenkins node config?
http://[server]:[port]/computer/[nodeName]/configure Under "Node Properties" you can define environment variables which will be used only within Jenkins, and will change nothing on the actual machine. If that is too dangerous, you can also inject an environment variable on a per-job basis. Add "Inject environment variable" as a build step before running your shell script. Or just add the line "set TMP=C:\blah\blah\blah" as the first line of your script. -- Jerry On Thursday, November 29, 2012 5:00:54 PM UTC-5, Brian Moffatt wrote: > > Running Jenkins on Windows 7 as a service. The service is running as my > account. > > For jobs that contain an "Execute Windows batch command" build step, > Jenkins attempts something along the lines of the following: > > > $ cmd /c call > C:\Users\xxxxxxx\AppData\Local\Temp\hudson6510189398488661865.bat > > > Is there a way to configure which directory Jenkins tries to use for this > operation? > > Thanks.