HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 5th, 2003, 02:54 PM
samprass samprass is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 1 samprass User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Windows Script Host Question

Hi,

The following commandline parameter:
"F:\Millennium\Central Agent.exe" /D:CVGL /P:8719|8720 works the way it should from a command prompt, but if I try to script it as follows:

set ww = wscript.createobject("Wscript.shell")
ww.run("F:\Millennium\Central Agent.exe /D:CVGL /P:8719|8720")

it won't work since this requires "F:\Millennium\Central Agent.exe" embedded in quotation marks.

Was wondering if there is a way to use any kind of escape character to run this script??

Appreciate any help and thanks in advance.

-Samprass

Reply With Quote
  #2  
Old December 12th, 2003, 07:55 AM
fhunth fhunth is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 15 fhunth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Re: Windows Script Host Question

Try

ww.run("""F:\Millennium\Central Agent.exe""" & "/D:CVGL /P:8719|8720")




Quote:
Originally posted by samprass
Hi,

The following commandline parameter:
"F:\Millennium\Central Agent.exe" /D:CVGL /P:8719|8720 works the way it should from a command prompt, but if I try to script it as follows:

set ww = wscript.createobject("Wscript.shell")
ww.run("F:\Millennium\Central Agent.exe /D:CVGL /P:8719|8720")

it won't work since this requires "F:\Millennium\Central Agent.exe" embedded in quotation marks.

Was wondering if there is a way to use any kind of escape character to run this script??

Appreciate any help and thanks in advance.

-Samprass

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Windows Script Host Question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway