0

This works:

start %appdata%\Mozilla\Firefox\Profiles\

These do not:

  • start %localappdata%\Google\Chrome\User Data\
  • start "%localappdata%\Google\Chrome\User Data\"
  • start %localappdata%\"Google\Chrome\User Data\"
  • start %localappdata%"\Google\Chrome\User Data\"

How can I open a Windows Explorer window using a path that has an environment variable and a space?

rianjs
  • 7,767
  • 5
  • 24
  • 40
  • 1
    Possible duplicate of [How to create batch file in Windows using "start" with a path and command with spaces](http://stackoverflow.com/questions/72671/how-to-create-batch-file-in-windows-using-start-with-a-path-and-command-with-s) – Sam Denty Mar 19 '17 at 20:41

2 Answers2

4

Your problem with start is that the first quoted argument is handled as a window title. Try with

start "" "%localappdata%\Google\Chrome\User Data\"

Or use

explorer /e, "%localappdata%\Google\Chrome\User Data"
MC ND
  • 69,615
  • 8
  • 84
  • 126
0
start "Windowtitlewhichcanbebemptyifdesiredbutnotomitted" "%localappdata%\Google\Chrome\User Data\"
Magoo
  • 77,302
  • 8
  • 62
  • 84