DDF-файл makecab: пробел в папке назначения

1778
David M

Я делаю CAB с makecab.exe / F, но в моем файле DDF я ссылаюсь на каталог, в котором есть пробел.

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

Тем не менее, makecab не распознает космическое объявление и считает, что каталог на этом заканчивается. Как я могу сделать эту работу? Я пробовал цитаты, но это не работает, по-видимому.

0

2 ответа на вопрос

0
Pat

use the alternate short path

run cmd

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

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

0
user25986

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"

Похожие вопросы