How correctly you can use filenames with spaces?
My code:
files = system("dir /b \"d:\\data\\my data\\*.dat\"")
do for [name in files]{
inputPath = "d:/data/my data/".name
outputPath = "d:/data/".name.".png"
set output outputPath
plot inputPath using 1:3 with lines ls 1 notitle
}
If there are spaces in the file name, the script does not work correctly. For example:
d:/data/my data/data1.csv - all correct
d:/data/my data/data 2.csv - error, 0 size file "data.png" is created and the graph is not created
How to solve this problem?