#45524 - 2003-09-18 05:35 PM
Very simple script
|
Julian
Starting to like KiXtart
Registered: 2000-04-20
Posts: 112
Loc: Newcastle, Staffs, UK
|
Hi people,
I am have having truble with the following script:
code:
shell '%comspec% /c T:\Local\GRCDrop\GRCDrop.exe' ? "Error: @error - @serror"
I get the following error:
Error: 8652320 - Error (317 / 13D) while retrieving error information for 840620
I can run the command from that location with no problem at all but it just won't run from the script.
The GRCDrop.exe command basically copies a file called Grc.dat located in the same directory to a specifed location, depending on the OS, on the hard drive to make Norton a managed client.
Any ideas?
Many Thanks
Ju
|
|
Top
|
|
|
|
#45526 - 2003-09-18 05:50 PM
Re: Very simple script
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Couple of thoughts come to mind..
Do you have the T: drive mapped on login? If so, is it established before this is executed?
Maybe tweaking the environment -
code:
shell '%comspec% ... other stuff
Change to -
code:
shell '%comspec% /C /E:512 ... other stuff
Spark up a CMD prompt and do a CMD /? to see what is there..
HTH,
Kent
|
|
Top
|
|
|
|
#45527 - 2003-09-19 02:33 PM
Re: Very simple script
|
Julian
Starting to like KiXtart
Registered: 2000-04-20
Posts: 112
Loc: Newcastle, Staffs, UK
|
Hi,
Shawn - It won't run from the logon script or running it manually.
kdyer - Yes the T:\ drive is mapped before this is executed. Ive also tried to copy the files to the local machine and modfy the script accordingly but I get the same msgs.
If I change the script to:
code:
shell '%comspec% /C /E:512 C:\GRCDrop\GRCDrop.exe'
I get the msg: The filename, directory name, or volume label syntax is incorrect.
Error: 1 - Incorrect function.
To be honest im at a loss here. The file definately exists in that directory. if i double click on it it works fine.
Ive looked at the CMD /? and can't really see anything in there that would help. Any ideas?
btw im doing this on a XP machine and its kix version 4.21.
|
|
Top
|
|
|
|
#45528 - 2003-09-19 02:44 PM
Re: Very simple script
|
Julian
Starting to like KiXtart
Registered: 2000-04-20
Posts: 112
Loc: Newcastle, Staffs, UK
|
Not sure if this helps but if I run it from a batch file it works OK. I suppose I could shell the batch file out but that seems very messy.
|
|
Top
|
|
|
|
#45530 - 2003-09-19 02:50 PM
Re: Very simple script
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Julian,
What about setting up an environment space for this?
code:
RUN '%COMSPEC% /e:1024 /c T:\Local\GRCDrop\GRCDrop.exe'
?
Kent [ 19. September 2003, 14:51: Message edited by: kdyer ]
|
|
Top
|
|
|
|
#45532 - 2003-09-19 03:19 PM
Re: Very simple script
|
Julian
Starting to like KiXtart
Registered: 2000-04-20
Posts: 112
Loc: Newcastle, Staffs, UK
|
OK. Here is the full code:
code:
shell '%comspec% /e:1024 /c T:\Local\GRCDrop\GRCDrop.exe' ? "Error: @error - @serror"
Like i say its a very simple script. It will go into the main script once working.
Running it like this i get the msg as before: Error: 8652320 - Error (317 / 13D) while retrieving error information for 840620
However if i use run instead of shell i get: Error: 0 - The operation completed successfully.
But it isnt successful.
|
|
Top
|
|
|
|
#45534 - 2003-09-19 03:36 PM
Re: Very simple script
|
Julian
Starting to like KiXtart
Registered: 2000-04-20
Posts: 112
Loc: Newcastle, Staffs, UK
|
Unfortunately neither work.
Shelling out just the command I get the Error (317 / 13D) as before.
Shelling with the start command tells me: Error: 2 - The system cannot find the file specified.
Ive checked and doubled checked - the file is there.
|
|
Top
|
|
|
|
#45537 - 2003-09-19 03:41 PM
Re: Very simple script
|
Julian
Starting to like KiXtart
Registered: 2000-04-20
Posts: 112
Loc: Newcastle, Staffs, UK
|
Now then. If a change directory to T:\Local\GRCDrop and run the command from there it works OK. However if I run T:\Local\GRCDrop\GRCDrop.exe it don't.
I can change directory in KiX cant i?
|
|
Top
|
|
|
|
#45538 - 2003-09-19 03:44 PM
Re: Very simple script
|
Julian
Starting to like KiXtart
Registered: 2000-04-20
Posts: 112
Loc: Newcastle, Staffs, UK
|
This works now:
code:
cd "T:\Local\GRCDrop" shell "GRCDrop.exe" ? "Error: @error - @serror"
Thanks Very Much
Julian
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|