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
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

Comments

  • espresso
    espresso Posts: 16,448 Forumite
    Part of the Furniture 10,000 Posts Combo Breaker
    Have you tried using quotes? "test file.exe"
    :doh: Blue text on this forum usually signifies hyperlinks, so click on them!..:wall:
  • thanks for the help anyway =)
  • HoofeHearted
    HoofeHearted Posts: 2,652 Forumite
    Part of the Furniture 1,000 Posts Photogenic
    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.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

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

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.