There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
DOS/PDA/Other
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > DOS/PDA/Other >
Batch file for multi execeute files for Dummy


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
britney's Avatar
Junior Member with 6 posts.
 
Join Date: Jan 2007
Experience: Beginner
26-Jan-2007, 04:52 PM #1
Batch file for multi execeute files for Dummy
Windows XP DOS CMD

If in C:\DIRA\
have runa.exe, runb.exe, whaterver.exe, nowhere.exe, something.exe ....
and a bat file run.cmd to run one by one exe file
Example: rC:\DIRA\run runa.exe
or C:\DIRA\run whatever.exe


How do you write a batch file so it can run all of the .exe file in C:\DIRA\
one test at a time , it finish one .exe file then go to next .exe file ??

I am lost in DOS

Thanks
JohnWill's Avatar
Computer Specs
Moderator with 77,380 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
26-Jan-2007, 05:30 PM #2
doesn't this work?

--- contents of batch file ---
runa.exe
runb.exe
whaterver.exe
nowhere.exe
something.exe
Squashman's Avatar
Distinguished Member with 12,592 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
26-Jan-2007, 09:43 PM #3
You don't have to type RUN. I think the last time I did that was on an Apple IIe in 1989.
JohnWill's Avatar
Computer Specs
Moderator with 77,380 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
26-Jan-2007, 10:13 PM #4
I think runa was the name of his EXE file.
Squashman's Avatar
Distinguished Member with 12,592 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
26-Jan-2007, 11:03 PM #5
Quote:
Originally Posted by JohnWill
I think runa was the name of his EXE file.
Yes.
I guess I misinterpreted the C:\DIRA\run directory as a RUN command.
britney's Avatar
Junior Member with 6 posts.
 
Join Date: Jan 2007
Experience: Beginner
30-Jan-2007, 04:49 PM #6
Okay my hard drive have 2 drive
C for DOS and D for windowsXP
In windows I have D:\Program Files\Application\Samples\XX\YY\ZZ\
In ZZ I have runa.exe , runb.exe , runc.exe, runv.exe, runz.exe

How I write a batch file from C, so when I type runsample.bat
it will execute 3 files
D:\Program Files\Application\Samples\XX\YY\ZZ\runa.exe
D:\Program Files\Application\Samples\XX\YY\ZZ\runb.exe
D:\Program Files\Application\Samples\XX\YY\ZZ\runc.exe

After it run runa then it run runb.exe then after dont with runb.exe it will runc.exe

I hope you understand what I say. How do i writethe runsample.bat
britney's Avatar
Junior Member with 6 posts.
 
Join Date: Jan 2007
Experience: Beginner
30-Jan-2007, 06:18 PM #7
I did it. Thanks
JohnWill's Avatar
Computer Specs
Moderator with 77,380 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
30-Jan-2007, 07:56 PM #8
You're welcome.

You can mark your own threads solved using the thread tools at the upper right of the screen.©
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:31 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.