Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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 EduardoHere %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

![]() |
![]() |
![]() |

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