You are here

CommandPromptPortable Own System Tools?

6 posts / 0 new
Last post
RobinVossen
Offline
Last seen: 16 years 1 month ago
Joined: 2008-04-09 07:45
CommandPromptPortable Own System Tools?

Windows Command Prompt Default has copy and del as commands.
And I made some tools so it would like more like Linux.
How can I add the tools. For cmd?

Can that be done?

Cheers,
Robin

Shawn Faucher
Shawn Faucher's picture
Offline
Last seen: 14 years 9 months ago
Developer
Joined: 2007-10-23 22:14
commandprompt.bat

You can add those tools to the portable drive (I would suggest PortableApps\CommandPromptPortable\Data) and then add the following to PortableApps\CommandPromptPortable\Data\Settings\commandprompt.bat:

SET PATH=$~d0\PortableApps\CommandPromptPortable\Data\;$PATH

Commandprompt.bat runs when you start up CommandPromptPortable and adding that line will add your tools to the path, assuming they are in X:\PortableApps\CommandPromptPortable\Data (if X is the portable drive letter).

formerly rayven01

RobinVossen
Offline
Last seen: 16 years 1 month ago
Joined: 2008-04-09 07:45
Doesnt work?

I changed my App\DefaultData\Batch\commandprompt.bat to:
@echo off
SET PATH=$~d0\bin\;$PATH
color 07
prompt $p$g
title Blackshell
cls
ver
cd\

in the folder:
PENDRIVE\bin\
I have the programs:
- netcat
- ls
- cat
- nano
- mkdir

But, well it doesnt work.
I guess I do some thing really stupid..
I cant use the commands when I am not in the directory..?

Tell me what I did wrong please Smile

Cheers,
Robin

wraithdu
Offline
Last seen: 10 years 11 months ago
Developer
Joined: 2007-06-27 20:22
Yea LOL Poor Shawn has been

Yea LOL Wink Poor Shawn has been coding too much NSIS. Should be -

SET PATH=%~d0\bin;%PATH%
RobinVossen
Offline
Last seen: 16 years 1 month ago
Joined: 2008-04-09 07:45
Yey it works.

Yey it works.

Shawn Faucher
Shawn Faucher's picture
Offline
Last seen: 14 years 9 months ago
Developer
Joined: 2007-10-23 22:14
Oops..

Heh, the funny part is I had %'s in there at first and changed them thinking I was putting NSIS code in there. I'm at an IT conference, my brain is fried. Wink

formerly rayven01

Log in or register to post comments