Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm making a .cab with makecab.exe /F but in my DDF file I'm referencing a directory that has a space in it.

.Set DestinationDir = site_event_templateListInstances\Files\Lists\RSVP List\

However, makecab doesn't recognise the space ad thinks the directory ends there. How can I make this work? I've tried quotations, but that doesn't work apparently.

share|improve this question

use the alternate short path

run cmd

cd "site_event_templateListInstances\Files\Lists\RSVP List\" 

you'll see the cmd promt gets decorated with the 8.3 alternative version of the requiered path; use that path

share|improve this answer

In my experience, makecab.exe has not a problem with spaces in folder names of .Set-Lines, but with the files in those folders; so .Set DestinationDir = site_event_templateListInstances\Files\Lists\RSVP List\ will not cause a problem, but the line(s) site_event_templateListInstances\Files\Lists\RSVP List\example.txt will.

For me, putting quotes around those line(s) worked: "site_event_templateListInstances\Files\Lists\RSVP List\example.txt"

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.