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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -