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
  • 34,748
  • 11
  • 69
  • 112
herder
  • 412
  • 2
  • 5
  • 16

0 Answers0