Go Back   nV News Forums > Software Forums > General Software

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-22-06, 05:54 AM   #1
Van_Dammesque
CoD is GoD
 
Van_Dammesque's Avatar
 
Join Date: Aug 2004
Posts: 49
Question Batch file type windows program.

Hi,
I'm looking for a batch-file type program that can be used in windows.
I have certain batch files that runs programs in a certain order, but the batch file pauses waiting for the windows program to finish so defeating the purpose of a batch file. The batch file continues if I quit the program it is waiting on.
Any ideas?

Thanks!(pirate)
__________________
Linux is free, if your time is worthless.
Van_Dammesque is offline   Reply With Quote
Old 08-22-06, 06:16 AM   #2
Clay
Registered User
 
Clay's Avatar
 
Join Date: Oct 2002
Posts: 4,993
Default Re: Batch file type windows program.

Not sure that I really follow what you're trying to say. However, you might want to take a look at WMI scripting and or Monad/Powershell.
Clay is offline   Reply With Quote
Old 08-22-06, 07:38 AM   #3
Van_Dammesque
CoD is GoD
 
Van_Dammesque's Avatar
 
Join Date: Aug 2004
Posts: 49
Default Re: Batch file type windows program.

Isn't what I'm after I'm afraid, here is what I'm trying to do in a batch script I have:

"C:\Prog Files\AppX.exe" -parametersX
"C:\Prog Files\AppY.exe" -parametersY
"C:\Prog Files\AppZ.exe" -parametersZ

Now what happens is the first program runs (a windows program rather than dos program), the script file stops after the first line (i think it hasn't return a "finished" command), if I quit AppX.exe, the script file then continues to AppY.exe and puase and so on.

I'm after a windows based launcher to do the same as the script above, i.e. to launch programs with one click.
__________________
Linux is free, if your time is worthless.
Van_Dammesque is offline   Reply With Quote
Old 08-22-06, 01:06 PM   #4
rewt
mmm, Beer.. :drooling:
 
rewt's Avatar
 
Join Date: May 2004
Location: USA
Posts: 3,667
Default Re: Batch file type windows program.

Use cmd /K or cmd /C in your batch script.

Code:
C:\>cmd /?
Starts a new instance of the Windows XP command interpreter

CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
    [[/S] [/C | /K] string]

/C      Carries out the command specified by string and then terminates
/K      Carries out the command specified by string but remains
__________________
My pimp'n rig
Athlon64 Venice 3000+ @ 2.6GHz (4100+) · Win XP Pro x86, Vista Ultimate x64 · eVGA K8-NF41 nForce4 SLi · Corsair XMS 1.5GB PC3200 CAS2/1T · eVGA 2x 6600GT SLi · Leadtek Winfast TV2000 XP Deluxe · Western Digital Caviar SE ½TB RAID 0/1 · PowerLink LPK2-30 400W · LiteON LDW-411S OC to 811S 8x DVD±R/RW/ROM · MicroAdvantage 64MB QuickiDrive · Samsung SyncMaster 931B 19" LCD · Microsoft Optical Wheel Mouse USB · Sony PSXtoUSB Analog Gamepads · Memorex MX2700 Multimedia Keyboard · Lexmark 3200 Color Jetprinter · nForce Network Controller 1Gb/s LAN (Cable ~3Mb/s down) · ΩPioneer Dolby Digital 5.1 Surround Sound
rewt is offline   Reply With Quote
Old 08-22-06, 01:09 PM   #5
evilghost
Registered User
 
Join Date: Jul 2005
Posts: 3,606
Default Re: Batch file type windows program.

cmd.exe /c "C:\Prog Files\AppX.exe -parametersX"
cmd.exe /c "C:\Prog Files\AppY.exe -parametersY"
cmd.exe /c "C:\Prog Files\AppZ.exe -parametersZ"
evilghost is offline   Reply With Quote
Old 08-22-06, 03:53 PM   #6
Van_Dammesque
CoD is GoD
 
Van_Dammesque's Avatar
 
Join Date: Aug 2004
Posts: 49
Default Re: Batch file type windows program.

Thanks for the help!

I tried the \c command and it didn't work.

It does work if I have:
Start "" "appX.exe"
Start "" "appY.exe"
etc...
__________________
Linux is free, if your time is worthless.
Van_Dammesque is offline   Reply With Quote
Reply


Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Windows 8 could be the next Vista News Archived News Items 0 06-15-12 10:30 AM
Like XP or Vista: how will businesses treat Windows 8? News Archived News Items 0 06-06-12 09:10 AM
NVIDIA Brings 18 Years of Experience to Windows 8 News Archived News Items 0 06-03-12 06:20 AM
Sync it up: Hands on with the preview of Windows 8's cloud sync service News Archived News Items 0 06-02-12 08:30 PM
RPM Source problems LaoTzuTao NVIDIA Linux 10 01-19-03 05:15 AM

All times are GMT -5. The time now is 01:34 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.