Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

Windows Script Exception - Urgent  RSS feed

 
Roshini Sridharan
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
Joe Ess
Bartender
Posts: 9425
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question in multiple forums.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!