wonsleinad Posted May 31, 2004 Posted May 31, 2004 In the code that I've seen everyone use:[HKEY_CLASSES_ROOT\Directory\shell\cmd]@="Open Command Window Here"[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]@="cmd.exe /k \"cd %L\""[HKEY_CLASSES_ROOT\Drive\shell\cmd]@="Open Command Window Here"[HKEY_CLASSES_ROOT\Drive\shell\cmd\command]@="cmd.exe /k \"cd %L\""When you try to "open command window here" on a folder with special characters (& or ^ etc.) You get an error (I attached a screen shot). I've fixed it, hopefully, by changing it to this:[HKEY_CLASSES_ROOT\Directory\shell\cmd]@="Open Command Window Here"[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]@="cmd.exe /k \"cd \"%L\"\""[HKEY_CLASSES_ROOT\Drive\shell\cmd]@="Open Command Window Here"[HKEY_CLASSES_ROOT\Drive\shell\cmd\command]@="cmd.exe /k \"cd \"%L\"\""All I did was add \" around %L
wolfshade Posted June 1, 2004 Posted June 1, 2004 Good work! I didn't noticed so far but i tried even w/o the fix i wouldn't get any error just that it wouldn't start command window in that dir but in the parent dir instead.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now