Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMD - How to deal with spaces in path

Tags:

windows

cmd

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

like image 793
trenccan Avatar asked Oct 21 '25 13:10

trenccan


1 Answers

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"
like image 80
egur Avatar answered Oct 24 '25 08:10

egur



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!