Hi I am tring to call a script in jenkins, but that script only
works in the tfpt.exe
command line. It is the TFS command line. I have
created the scripts with the commands already, only these do not work
with cmd.exe
which is the usual Windows command line, but only with
the tfpt.exe
( Developer Command Prompt for VS2015). How can I specify
that this one should be used, with its path as well I guess?
Asked
Active
Viewed 847 times
1

aschipfl
- 33,626
- 12
- 54
- 99

uniXVanXcel
- 807
- 1
- 10
- 25
-
1You can extend the PATH (depending on what type of build you are using) with the location of the `tfpt.exe` parent dir – Rik Apr 20 '17 at 14:54
-
thank you. care to give an example? thanks – uniXVanXcel Apr 20 '17 at 14:55
-
1What kind of build are you using? I.e. In pipeline: `withEnv(["PATH=c:\tftp\parent\dir;${env.PATH}"]){ bat "tftp.exe 'command'" }` – Rik Apr 22 '17 at 17:40
-
@Rik oh iam using a freestyle project – uniXVanXcel Apr 23 '17 at 20:45
-
Try starting your script with: `set PATH=c:\tftp\parent\dir;%PATH%` – Rik Apr 24 '17 at 13:05