#188724 - 2008-07-13 02:12 PM
Re: Simply can't seem to get a RUN command to work.
[Re: Arend_]
|
Glenn Barnas
KiX Supporter
   
Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
|
There are two issues that need to be resolved before trying alternate script start methods...
The first is the proper command syntax, which finally seems to have been resolved. Without that, RunOnce and WScript methods would fail just the same.
The second issue is the behavior of the install command after it has successfully been invoked. Using the syntax I recommended, with redirection to status and error logs, we can determine what's going on. Rick stated that "the error log said path not found" - If you post the actual data from the logs, instead of a vague interpretation, we could determine where that message is coming from.
If you get a message like:
'c:\temp\junk.exe' is not recognized as an internal or external command, operable program or batch file. its coming from the operating system, and you need to check your code to be sure that the mapped drive is available and you're specifying the correct location for the command. However, if you get a different message that states that some file can't be found, it's more likely that my prior explanation is appropriate - you are running the install command, but it can't find the rest of the files it needs to complete the install. You'll need to map the drive, make that drive active, CD to the install folder, and THEN run the install command.
Hey - waitaminute!!
Your initial command was "\\server\ezaudit\ezstart.exe". Then you say you mapped the drive to "Y:", and then ran "\ezaudit\ezstart.exe". Isn't "ezaudit" the share name? If it is, all you need to do is go to the ROOT of Y: and run "ezatart.exe" with your args. However, if "ezaudit" is not shared, it would explain why none of the UNC paths work. What is the server name? What is the share name? If you map the drive to that share manually, what do you see when you run DIR? (post the actual command output, please)
Glenn
_________________________
Actually I am a Rocket Scientist!
|
Top
|
|
|
|
#188936 - 2008-07-30 09:39 PM
Re: Simply can't seem to get a RUN command to work.
[Re: Kdyer]
|
cwick
Fresh Scripter
Registered: 2003-08-25
Posts: 10
Loc: Ohio
|
We actually use EZAudit here. This is the command from our login script
RUN "%COMSPEC% /c o:\ezaudit\ezscan.exe auto"
The O drive is mapped to a share on our server using the USE command.
Hope this helps. Chad
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 493 anonymous users online.
|
|
|