merlin2049er Well-Known Member Licensed User Longtime User Apr 7, 2014 #1 Hi, how do I handle file names and paths with spaces in them? I'm using a few os related commands (copy and remove) and I'm getting file not found errors. Do I put them in " " ?
Hi, how do I handle file names and paths with spaces in them? I'm using a few os related commands (copy and remove) and I'm getting file not found errors. Do I put them in " " ?
thedesolatesoul Expert Licensed User Longtime User Apr 7, 2014 #2 Are you using shell commands? You can wrap them in single or double quotes. Upvote 0
merlin2049er Well-Known Member Licensed User Longtime User Apr 7, 2014 #3 yes, I'm using the functions in mlfiles, cp and rm. Upvote 0
thedesolatesoul Expert Licensed User Longtime User Apr 7, 2014 #4 something like this would work: "cp 'my file.txt' 'new file.txt'" Upvote 0
merlin2049er Well-Known Member Licensed User Longtime User Apr 7, 2014 #5 Ok, I'll try that. Thanks! Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 7, 2014 #6 If it doesn't work then add a slash (\) before the space. Upvote 0