The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions
.
google unix.com



Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here!

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 08:33 PM
Running shell scripts automatically without using Batch or at commands ritzwan0 Shell Programming and Scripting 3 09-17-2006 02:51 PM
batch file ramneek High Level Programming 3 11-09-2005 05:48 AM
batch file ramneek IP Networking 1 11-08-2005 11:09 AM
what a bunch of idiots... norsk hedensk News, Links, Events and Announcements 1 01-15-2004 11:45 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-17-2007
alfredo123 alfredo123 is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 44
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?
  #2 (permalink)  
Old 07-17-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
call com1.bat ....
  #3 (permalink)  
Old 07-18-2007
alfredo123 alfredo123 is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 44
Exclamation

Awesome man...it works....

Thanks so much!!!!

Last edited by alfredo123; 07-18-2007 at 10:48 AM..
  #4 (permalink)  
Old 07-18-2007
deadbug28 deadbug28 is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 1
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!!?..
Closed Thread

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:43 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0