# Replace assignment with this. # 'q//' treats as a single-quoted string, which does not try to # interpolate characters. As a result, the double-quotes in # the command do not require escaping. Here I used the '/' as # the delimiter for the single-quoting 'q', but could be other # characters depending on what is needed in the string. I also # used the '.' to concatenate the string, allowing it to be # written across multiple lines so the spaces between parameters # were obvious. my $cmd = q/fsutil/ # command . q/ / . q/file/ # parameter 1 . q/ / . q/setShortName/ # parameter 2 . q/ / . q/"C:\Users\James\Music\國語懷念老歌 Vol. 2"/ # parameter 3 . q/ / . q/"Vol2~00A"/; # parameter 4 # The double-quotes in parameter 3 are necessary # due to the spaces within the file name. # Continue remainder of code as before