Page 1 of 1 1
Topic Options
#45524 - 2003-09-18 05:35 PM Very simple script
Julian Offline
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
#45525 - 2003-09-18 05:40 PM Re: Very simple script
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Question:

You mean it wont run from the script at all (either during or if ran manually after login) or that it just wont run during login ?

-Shawn

Top
#45526 - 2003-09-18 05:50 PM Re: Very simple script
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#45527 - 2003-09-19 02:33 PM Re: Very simple script
Julian Offline
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 Offline
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
#45529 - 2003-09-19 02:46 PM Re: Very simple script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
julian, my quess is more trivial, missing quote.
could you post more of your script?
_________________________
!

download KiXnet

Top
#45530 - 2003-09-19 02:50 PM Re: Very simple script
Kdyer Offline
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 ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#45531 - 2003-09-19 02:52 PM Re: Very simple script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
eh?
didn't he already try that?
_________________________
!

download KiXnet

Top
#45532 - 2003-09-19 03:19 PM Re: Very simple script
Julian Offline
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
#45533 - 2003-09-19 03:28 PM Re: Very simple script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, what about:
code:
shell 'T:\Local\GRCDrop\GRCDrop.exe'

and if you have problem with it:
code:
shell 'start T:\Local\GRCDrop\GRCDrop.exe'

_________________________
!

download KiXnet

Top
#45534 - 2003-09-19 03:36 PM Re: Very simple script
Julian Offline
Starting to like KiXtart

Registered: 2000-04-20
Posts: 112
Loc: Newcastle, Staffs, UK
Unfortunately neither work. [Frown]

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
#45535 - 2003-09-19 03:36 PM Re: Very simple script
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
One has to wonder if it is even operating correctly when run manually from a DOS prompt?
Top
#45536 - 2003-09-19 03:40 PM Re: Very simple script
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
What if you CD to the directory first:

CD "T:\Local\GRCDrop"
shell '%comspec% /e:1024 /c T:\Local\GRCDrop\GRCDrop.exe'

-Shawn

Top
#45537 - 2003-09-19 03:41 PM Re: Very simple script
Julian Offline
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 Offline
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"

[Big Grin] [Big Grin]

Thanks Very Much

Julian

Top
#45539 - 2003-09-19 03:45 PM Re: Very simple script
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Synchronisity ! Read post above yours ...
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.075 seconds in which 0.033 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org