(this is unimaginative) Well let me give you the situation. I want to set up a "Scan with Ad-aware" option in my directory context menu. This feature is included in the pay versions, but being the cheap ass that I am I wanted to do it myself. So, I fired up regedit and navigated to the registry key HKEY_CLASSES_ROOT\Directory\shell and added a command. Now in order to fire this up, I need to open a command prompt and execute: "Ad-aware.exe .", which scans my current file. Since MSDOS opens at a set path, I need to open it at the given directory and execute ad-aware.exe in the current directory. So the command would be
Code:
cmd.exe /k (allows execution of an additional command) "cd %L" (which opens up the current directory with dos)
I fooled arround with various syntaxes but I can't get it working.
Now you might be screaming: BATCH FILE BATCH FILE BATCH FILE!!!!, but for some reason, it didn't work. It contained:
Code:
cmd.exe /k "cd %L"
ad-aware.exe .
and put it in my C:\windows\system32 directory and put the registry value in my key but it still didn't work.
If anyone is still reading after all the mumbo jumbo, please help