e.g. in UNIX I would have something simple like;
echo "Please enter number"
mv c:\elephant c:\eleph$xant
All the best,
> I want to create a dos batch file in XP that will ask the user to input a
> number of up to 4 characters then use that input to rename and copy files.
> e.g. in UNIX I would have something simple like;
> echo "Please enter number"
> read $x
> mv c:\elephant c:\eleph$xant
set /p "var=Enter a four digit number "
ren "file.txt" "file%var%.txt"
Thanks foxidrive that is perfect!
I did a bit of DOS stuff a few years ago but have been using UNIX recently
and couldn't quite get my head around this.
I have been experimenting using it to make new folders as well.
This is going to save creating a folder and copying and renaming 5 template
files each time several times a day at work!!