1.

Solve : Help accessing folder in cmd prompt?

Answer»

Hi, new here and for a quick quesiton-

im trying to access spybot S&D folder from cmd prompt, but it RECOGNIZES the "&" as a command. how do i bypass this to get into my C:\prog files\spybot - Search & Destroy folder?Once you're in the program files folder, use cd "spybot - search & destroy" to enter the Spybot folder.
Better still, use the XP Powertoys tool to add "Command Prompt Here" to Explorers right click context menu.
You'll be able to right click any folder and OPEN a command prompt inside it WITHOUT all that cd'ing.
Per Backdated, you can surround the directory in quotes:
Code: [Select]cd "C:\Program Files\Spybot - Search & Destroy"Or if you don't want to use quotes, you can escape the ampersand with the ^ symbol:
Code: [Select]cd C:\Program Files\Spybot - Search ^& DestroyMore easy , use wildcards:

Code: [Select]cd C:\Prog*\Spy*Carlos' soultion will work as LONG as there are no other matching directories, as will:
cd C:\Progra~1\Spybot~1
but also with a slight risk of GETTING a directory you didn't intend ... so test it first, if you use either of these last 2 methods



Discussion

No Comment Found