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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

c# - Abstract method in public abstract class implementing an internal interface doesn't compile? -

authentication - Mongodb revoke acccess to connect test database -