0

I need to open a file which contain spaces in the filename.

FILE1="Some text with spaces.txt"
cmd /c start ${FILE1}

The only solution I found is using if loop, but it is not what I need

for file1 in *.txt

Solution with quotes doesn't work:

cmd /c start "${FILE1}"
cmd /c start `${FILE1}`

Any ideas?

philant
  • 33,077
  • 11
  • 67
  • 110
herder
  • 301
  • 2
  • 4
  • 13

0 Answers0