Cannot execute command line within TS from batch

Ok, forgot quotes, how silly is that ;-)

thanks

May 28th, 2015 4:22am

try that: cmd /c ".\Scripts\install.bat"

And also check your batch file (perhaps named install.bat.txt...)

  • Marked as answer by Michael140 23 hours 27 minutes ago
Free Windows Admin Tool Kit Click here and download it now
May 28th, 2015 6:54am

The folder structure of the package is this;

Notepad ++ 6.9 ENU

-> Sources
        -> notepad++.exe
-> Plugins
-> Images
        -> pic.jpg
-> Scripts
        -> install.bat

In my task sequence I am trying to run the install.bat file with the 'Run command line' step. My command is: cmd /c .\Scripts\install.bat

This is a simple problem I admit but I don't see it (yet) :-)

May 29th, 2015 1:22am

Error code or any message in TaskSequence history Report?
Free Windows Admin Tool Kit Click here and download it now
May 29th, 2015 1:26am

This is what I get from the smsts.log

Set command line: Run command line	InstallSoftware	28/05/2015 08:18:56	1144 (0x0478)
Working dir 'C:\_SMSTaskSequence\Packages\COR000FF'	InstallSoftware	28/05/2015 08:18:56	1144 (0x0478)
Executing command line: Run command line	InstallSoftware	28/05/2015 08:18:56	1144 (0x0478)
Process completed with exit code 1	InstallSoftware	28/05/2015 08:18:56	1144 (0x0478)
'Scripts\install.bat' is not recognized as an internal or external command,	InstallSoftware	28/05/2015 08:18:56	1144 (0x0478)
operable program or batch file.	InstallSoftware	28/05/2015 08:18:56	1144 (0x0478)
Command line returned 1	InstallSoftware	28/05/2015 08:18:56	1144 (0x0478)
ReleaseSource() for C:\_SMSTaskSequence\Packages\COR000FF.	InstallSoftware	28/05/2015 08:18:56	1144 (0x0478)
reference count 1 for the source C:\_SMSTaskSequence\Packages\COR000FF before releasing	InstallSoftware	28/05/2015 08:18:56	1144 (0x0478)
Released the resolved source C:\_SMSTaskSequence\Packages\COR000FF	InstallSoftware	28/05/2015 08:18:56	1144 (0x0478)
Process completed with exit code 1	TSManager	28/05/2015 08:18:56	2660 (0x0A64)
!--------------------------------------------------------------------------------------------!	TSManager	28/05/2015 08:18:56	2660 (0x0A64)

May 29th, 2015 2:27am

try that: cmd /c ".\Scripts\install.bat"

And also check your batch file (perhaps named install.bat.txt...)

Free Windows Admin Tool Kit Click here and download it now
May 29th, 2015 2:44am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics