Search code examples
windowswindows-shell

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


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?


Solution

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