CMD - How to deal with spaces in path

2019-09-05 00:33发布

Im trying to rewrite multiple files in folder using CMD in windows 7. Im using this code:

Replace C:\test\cisty_test_kabel  ploche.xlsm  C:\Káble /s

If i have a space somewhere in the path, the code is not working. Any idea how to fix it?

Thanks

标签: windows cmd
1条回答
甜甜的少女心
2楼-- · 2019-09-05 00:52

Any argument that contains spaces (not only paths) should be surrounded by double quotes.

This is true for all operating systems.

in your case:

Replace "C:\test\cisty test kabel"  ploche.xlsm  C:\Káble /s "some other string"
查看更多
登录 后发表回答