You are here

CommandPromptPortable: Target directory as parameter

3 posts / 0 new
Last post
freemp
Offline
Last seen: 9 years 11 months ago
Joined: 2007-09-08 09:41
CommandPromptPortable: Target directory as parameter

In order to be able to use CommandPromptPortable for launching command prompts from within portable 3rd-party Explorer replacements (like FreeCommander) directly into the current working directory, I was slightly changing the CommandPromptPortable launcher source (CommandPromptPortable.nsi). It reads the target directory as parameter now, e.g. running

P:\PortableApps\CommandPromptPortable>CommandPromptPortable.exe X:\foo\bar

would result in X:\foo\bar being the current directory of the command prompt being launched, like

X:\foo\bar>

Here's what I changed:

62d61
 		IfFileExists "$EXEDIR\Data\Batch\commandprompt.bat" "" LaunchNow
121,132d119

Rexx72
Offline
Last seen: 15 years 8 months ago
Joined: 2008-07-31 19:58
Perhaps you could help me?

You seem to know what you're doing and I couldn't figure out a way to send you a "private message". Could you please have a look at https://portableapps.com/node/14887 and give me any suggestions you might have.

scribble scribble twirly bit scribble

John T. Haller
John T. Haller's picture
Offline
Last seen: 3 hours 28 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Thanks

I used a modified version of this in the 2.0 release after adding in code to strip double quotes. It works well on Win2K and up.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments