I am new to batch and while i made a script, the following error occurs: The system cannot find the path specified. Here is the code for the file:
title HelloBatch
cd C:/Users/"%USERNAME%"/Desktop
break > test.txt
I tried doing %USERNAME% without the quotatiion marks, NOPE, it still shows error.
Another note is that my username containe spaces. is that why it displays the error? if yes, how can i solve it?