How to pass directory path that have space to windows shell?

karikari picture karikari · Mar 2, 2011 · Viewed 47.7k times · Source

I am using IEcapt.exe to capture website snapshot. The problem is, it cannot handle path directory that have space. Like this:

c:\program files\

Is there any way how I can pass directory like this to make it work?

Answer

kojiro picture kojiro · Mar 2, 2011

Usually just double-quoting windows paths will work:

IEcapt.exe "C:\Program Files\some path"

If that really doesn't work, you might be able to get away with using the 8.3 filename or, in the case of program files, the %programfiles% variable.