The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions
Google UNIX.COM


Windows & DOS: Issues & Discussions Questions involving Unix to Windows (Desktop or Server) go here. Any Windows/DOS questions should go here as well.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Bunch of questions... Legend986 UNIX for Dummies Questions & Answers 3 09-28-2007 05:33 PM
Running shell scripts automatically without using Batch or at commands ritzwan0 Shell Programming and Scripting 3 09-17-2006 11:51 AM
batch file ramneek High Level Programming 3 11-09-2005 01:48 AM
batch file ramneek IP Networking 1 11-08-2005 07:09 AM
what a bunch of idiots... norsk hedensk News, Links, Events and Announcements 1 01-15-2004 07:45 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2007
Registered User
 

Join Date: Jun 2006
Posts: 39
Stumble this Post!
Exclamation batch file--bunch of commands

I have a batch file that takes 2 parameters--source file location and target file location.

I want to create another batch file that contains all the commands with the file locations so that I dont have to enter the ifnromation every time individually.

For eg:
to execute command
Code:
com1.bat source_file_loc output_file_loc
This will give me the output file in output_file_loc

I want to run the same command but with many files so my file should be
com_full.bat
Code:
com1.bat source_file_loc1 output_file_loc1
com1.bat source_file_loc2 output_file_loc2
com1.bat source_file_loc3 output_file_loc3
com1.bat source_file_loc4 output_file_loc4
com1.bat source_file_loc5 output_file_loc5
com1.bat source_file_loc6 output_file_loc6
But when I run com_full.bat it creates only output_file_loc1....and then exits....How would I go about getting this done?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-17-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Stumble this Post!
call com1.bat ....
Reply With Quote
  #3 (permalink)  
Old 07-18-2007
Registered User
 

Join Date: Jun 2006
Posts: 39
Stumble this Post!
Exclamation

Awesome man...it works....

Thanks so much!!!!

Last edited by alfredo123; 07-18-2007 at 07:48 AM.
Reply With Quote
  #4 (permalink)  
Old 07-18-2007
Registered User
 

Join Date: Jul 2007
Posts: 1
Stumble this Post!
help

i wish i couldnt be new at this stuff but i need lots of helm add me and ill talk of wht little i know but wiill need to know how to be a pro at haking or just someone good at it , but i still dont want it to take for ever!!?..
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:01 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0