Computing.Net > Forums > Programming > I need help with bat file - please help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

I need help with bat file - please help

Reply to Message Icon

Name: Eduardo
Date: August 18, 2002 at 09:56:32 Pacific
Comment:

I need to make a bat file that asks user
the name of the file example "car" and the
bat file will replace where file will write
car and the it asks how many images
will be copied example 6 then it does
something like this.

copy file001.bmp tempdir\file001.bmp
copy file001.bmp tempdir\file002.bmp
copy file001.bmp tempdir\file003.bmp
copy file002.bmp tempdir\file004.bmp
copy file002.bmp tempdir\file005.bmp
copy file002.bmp tempdir\file006.bmp
copy file003.bmp tempdir\file007.bmp
copy file003.bmp tempdir\file008.bmp
copy file003.bmp tempdir\file009.bmp
copy file004.bmp tempdir\file010.bmp
copy file004.bmp tempdir\file011.bmp
copy file004.bmp tempdir\file012.bmp
copy file005.bmp tempdir\file013.bmp
copy file005.bmp tempdir\file014.bmp
copy file005.bmp tempdir\file015.bmp
copy file006.bmp tempdir\file016.bmp
copy file006.bmp tempdir\file007.bmp
copy file006.bmp tempdir\file018.bmp



Sponsored Link
Ads by Google

Response Number 1
Name: Sajid Mohammed
Date: August 18, 2002 at 13:24:31 Pacific
Reply:

Hi Eduardo,
Create a file temp.dat and type the following and see the results. You can use the same implementation according to your requirement.
Type the following in the batch file.

echo How r you, %1

Run this file from C prompt or where ever you stored the batch file as follows

c:\>temp Eduardo

The result will be
How r you Eduardo

Here %1 is replaced by Eduardo.

Similarly you can give more than one parameter to the batch file by typing

C:\>temp ......

Hope this solves your problem
Sajid Mohammed
sajleo@yahoo.com


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: I need help with bat file - please help

Help with Bat File www.computing.net/answers/programming/help-with-bat-file/18815.html

Please, I need help so badly www.computing.net/answers/programming/please-i-need-help-so-badly/15937.html

I need help please... www.computing.net/answers/programming/i-need-help-please/9444.html