Forums Register Login

Windows Script Exception - Urgent

+Pie Number of slices to send: Send
hi all,

i am trying to execute the adminscript for Starting/Stoping the Web Server IIS5.0 in windows 2000.

The following is the code
--------------------------------------------------------------------
Process r = ob.exec("c:/inetpub/adminscripts/startweb.vbs -a 1,2 -c globalv");
r.waitFor();
--------------------------------------------------------------------

i get the exception as below.
---------------------------------------------------------------
Exception in thread "main" java.io.IOException: CreateProcess: c:\inetpub\admins
cripts\startweb.vbs -a 1,2 -c globalv error=193
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at ScriptExec.main(ScriptExec.java:18)
---------------------------------------------------------------
Pls help in solving this problem.

Pls move this to appropriate forum because i am not sure where to post.

Regards
Roshini.S
+Pie Number of slices to send: Send
Please do not post the same question in multiple forums.
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


Reply locked
This thread has been viewed 875 times.
Similar Threads
How to exec the "DOS" command in Java code
IOException: CreateProcess: cmd.exe /c copy /B...
Hi , i am using belowcode for automatically execute backup of mysql database
IOException: CreateProcess: cmd.exe /c copy /B...
Unix With Java....
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 07:35:12.