Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Can anyone help me. I made a btach file and in the file is a commandline with the command rename. But the rename command is a share command wich not works after the compiling. The eroor is my line. I wrote "rename *.* *.069". If I write "rename filename.* *.069" the command works.
Can anyone give me a tip how I can use the rename command in a compiled btach file with the *.* command ?Sorry for my bad english, I came from germany and I canīt speak english well.

You want to rename all files from current directory to a same extention, is that it?
What do you mean by "compiled batch"? You're using a program like bat2exe or bat2com to convert the script, is that it?
And finally, what's your exact OS? If you're under Windows, state your WINDOWS VERSION (e.g.: 95, 98, NT4, 2000, XP, etc).
-- Leonardo Pignataro - Secret_Doom --
secret_doom@hotmail.com
www.batch.hpg.com.br

Okay, I have Windows XP, but thats not the Problem, because I had copy me all Dos *.com files for a perfect funcionality.
The Code is
echo off
echo.
echo. All files will be renamed.
echo.
echo. *****
cd..
rename *.* *.069
echo.
echo. All files are renamed.
pause > nul
clsAnd compiled means compiled with bat2com.

I don't have any trouble running that code in Win98 (unless I have two files with the same name and different extensions).
What happens if you run the batch file without using bat2com on it first?

Syntaxerror
The system couldnīt be able to find the files.
SyntaxerrorO.K, thats the problem, the rename command couldnīt rename someone files to *.069 files, because itīll have fully filenames.
But how can I kick the problem ?

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

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