@Sebastian-Roth Many thanks for the reply, that would explain it how would I work around this, would this be something for a snapin pack?
Posts made by scottedwards54
-
RE: snapin not working
-
RE: snapin not working
Hi Daniel,
Thank you for your reply, I can confirm that this script works if you run it manually so I do not believe it to necessarily be a problem with the script itself just how the snapin is perhaps using it not entirely sure all new to the world of FOG :), and you can double quote only the section that has spaces in it and command prompt will read it correctly.
I will try and dump the output to a file and see if that sheds anymore light
Kind Regards,
Scott
-
snapin not working
Hi, I have created the following batch file:
mkdir c:\AV
copy \[server]\public"AV Install"\setup.exe c:\AV\ /z /y
cd c:\AV
start /WAIT c:\AV\setup.exe /s /wI have created a normal snapin, chosen batch script, uploaded the file. but when I run the snapin task it says on the computer that it has started it, and then almost instantly finishes it.
It created the folder, but did not copy the file, and obviously did not start the setup file, to install the program. Now I checked the snapin settings for this again and noticed it automatically put in a snapin argument of /C now from what I know this tells cmd.exe to run the command and terminate, so it would appear that it is running the first command and terminating, which explains why the folder is created and nothing us is followed.
So I thought lets remove the argument /C and see what happens, well now it is saying the task is running and running and running, you get the picture however it does do anything in the bat file?!
Am I missing something, or is there something I am not accounting for?
Any help would be gratefully recieved.
Kind Regards
Scott