
We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
batch file space in filename??
Options

cookie_monster_8
Posts: 129 Forumite

in Techie Stuff
im trying to write an autorun batch file...
works fine but i dont know how to have a space in the filename.
i can autorun e.g. testfile.exe fine but not test file.exe as it just says cannot find test
so is there some kind of additional syntax to enter a space??
any info appreciated
IGNORE THIS: guessed it one minute later and "" worked
works fine but i dont know how to have a space in the filename.
i can autorun e.g. testfile.exe fine but not test file.exe as it just says cannot find test
so is there some kind of additional syntax to enter a space??
any info appreciated
IGNORE THIS: guessed it one minute later and "" worked
0
Comments
-
Have you tried using quotes? "test file.exe":doh: Blue text on this forum usually signifies hyperlinks, so click on them!..:wall:0
-
thanks for the help anyway0
-
One way is to open a command window, "cd" to the folder where the file resides and then type "dir /X". This will show a list of all the files with their 8.3 filenames. For "test file.exe" this shows as "testfi~1.exe". Use this name in your batch file.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 350.7K Banking & Borrowing
- 253K Reduce Debt & Boost Income
- 453.4K Spending & Discounts
- 243.7K Work, Benefits & Business
- 598.5K Mortgages, Homes & Bills
- 176.8K Life & Family
- 256.9K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.6K Read-Only Boards