Run a bat file from the ghost console
Created: 16 Feb 2010 | 4 comments
Hey everyone,
I need to run a bat file that is located locally from the ghost console. It is located in the ghost\incoming folder
I have made a task with execute command, and written the path of the bat file c:\program files\symantec\ghost\incoming\start.bat , but it only opens a small cmd prompt very quickly and closes again. If i open it manually from the client everything works.
anyone know how to solve this ?
Discussion Filed Under:
Comments 4 Comments • Jump to latest comment
What I usually do is make a file share available to the client PCs, and then put the batch file there. Then, if I update the batch file, all the task members will automatically run the new batch file without having to redistribute it to all the clients.
In your case, you might try enclosing your path in double quotes like so:
"c:\program files\symantec\ghost\incoming\start.bat"
"Program Files" contains a space and that'll throw things off if it's not enclosed. That space won't affect you if you are already in the directory when you run the batch file by hand.
funny thing is .. i've tried both its a pretty simple script.. but it jsut doesn't run the bat file.
as a side note... All the files are copied to the client perfectly after the clone.
I have a join script that I need to run after the imaging process.
Would you like to reply?
Login or Register to post your comment.