-
December 9th, 2004, 11:17 AM
#1
Registered User
how do I start an app from script and send it multiple arguments
hello all,
Im trying to create a batch script to start an application, but I cannot get all the parameters to the prog. This results in default settings which are not desired.
This is the line in question:
START "" %WINDIR%\NWQUOTA.EXE G: 300 75 95 % N Y 0 0
i need to start nwquota from the windows directory and send it the following arguments:
G: 300 75 95 % N Y 0 0
Powered by: AMD Opeteron 175, 2 GB Mushkin XP4000, eVGA 7800 GT CO OC SLI, Creative X-Fi, WD25000 RAID 0, Plextor 716-SA, Asus A8N32-SLI Deluxe, Enermax Liberty 620, Zalman 9500 HS
-
December 10th, 2004, 03:17 PM
#2
Registered User
obviously doing this in batch is going no where, any one know how to do it in Windows Scripting host? (WSH)
Powered by: AMD Opeteron 175, 2 GB Mushkin XP4000, eVGA 7800 GT CO OC SLI, Creative X-Fi, WD25000 RAID 0, Plextor 716-SA, Asus A8N32-SLI Deluxe, Enermax Liberty 620, Zalman 9500 HS
-
December 10th, 2004, 03:21 PM
#3
Registered User
I not sure, but wouldn't the correct synatx be:
START "%WINDIR%\NWQUOTA.EXE G: 300 75 95 % N Y 0 0"
Probably wrong, but just a thought!
UPDATE - Yeah I think I'm wrong...nevermind! However, upon looking at the site for NWQUOTA, I think you need to replace the "%" to "R" so it looks like this:
NWQUOTA.EXE G: 300 75 95 R N Y 0 0
That could be your problem possibly
Last edited by InTheWayBoy; December 10th, 2004 at 03:29 PM.
-
December 10th, 2004, 06:04 PM
#4
Registered User
CMD interprets this:
START "%WINDIR%\NWQUOTA.EXE G: 300 75 95 % N Y 0 0"
as a string literal so it looks for the program: NWQUOTA.EXE G: 300 75 95 % N Y 0 0.exe
stupid thing.
if i run it from the run command or the command line this works no problems:
NWQUOTA.EXE G: 300 75 95 % N Y 0 0
replacing % with R breaks it (reverts to defaults)
I have seen someone work magic with quotetations that has made an app accept multiple params in the past but the best i can get it to do is reconize the first 2, even then windows borks it.
I might have to code that INI config that is soposed to be in the next ver, but i hate codeing.
Powered by: AMD Opeteron 175, 2 GB Mushkin XP4000, eVGA 7800 GT CO OC SLI, Creative X-Fi, WD25000 RAID 0, Plextor 716-SA, Asus A8N32-SLI Deluxe, Enermax Liberty 620, Zalman 9500 HS
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks