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

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -