You are here

CommandPromptPortable Bugfix

1 post / 0 new
freemp
Offline
Last seen: 10 years 6 months ago
Joined: 2007-09-08 09:41
CommandPromptPortable Bugfix

I was fixing some issues in CommandPromptPortable:

* Failure when processing path parameters containing an ampersand.
* Failure when processing path parameters without drive letter.
* Failure in case commandprompt.bat does not exist.

Here's the patch...


124,125c124,125
StrCpy $ExecString `"$ComSpec" /d /k "`
> IfFileExists "$EXEDIR\Data\Batch\commandprompt.bat" "" NoBatchFile
126a127,130
> Goto GetPassedParameters
>
> NoBatchFile:
> StrCpy $ExecString `$ExecString color 07 && prompt $$p$$g&& title Command Prompt Portable&& cls && ver && cd\`
140c144
IntCmp $0 2 +1 +2 +2
144,145c148,150
IntCmp $0 0 +2
> StrCpy $ExecString `$ExecString && cd "$R1"`
> StrCpy $ExecString `$ExecString"`