batch file - Escape an asterisk in DOS -


i rename file in dos. result, dot , asterisk should appended file name. example:

rename text.log text.log.* 

however returns:

text.log.. 

i have tried escape * follows:

rename text.log text.log.\* 

but no way! guys know how can rename file appending .* string text.log using cmd shell?

thanks!

you can't - * reserved character , cannot used in filename.

https://en.wikipedia.org/wiki/filename#reserved_characters_and_words


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

c - getting error: cannot take the address of an rvalue of type 'int' -

python - GitPython: check if git is available -