You are here

ControlPad need help with commands.

5 posts / 0 new
Last post
Charles Kennedy
Offline
Last seen: 6 years 11 months ago
Joined: 2013-07-02 00:42
ControlPad need help with commands.

What I would like to do is run other programs with ControlPad but here's my problem:

The directory structure is like this:

Root>\PortableApps\ControlPadPortable\ControlPadPortable.exe

How do I reference things 2 levels up from the executeable? such as ChromePortable.exe which is under:

Root>\PortableApps\ChromePortable\ChromePortable.exe

If the drive letter were the same every time it would be a simple fix, but I am using these portable apps at client sites and on various computers. If I could get this to work it would make my life much easier.

If it is simply not possible I understand.

P.S. (I do realize that I could put ALL the programs as sub folders to this program, but remapping all of that in the PortableApps launcher would be a PITA.)

Ken Herbert
Ken Herbert's picture
Offline
Last seen: 5 hours 35 min ago
DeveloperModerator
Joined: 2010-05-25 18:19
Have you tried it?

It should work out of the box as drive letter and path changes are already handled in Commands.ini (which is where I assume your custom commands would be stored).

Charles Kennedy
Offline
Last seen: 6 years 11 months ago
Joined: 2013-07-02 00:42
Didn't work, but again I could just be dumb.

CMD=\PortableApps\ConsolePortable\ConsolePortable.exe

That's what I tried to run...but it doesn't do anything. I guess I'm not understanding fully what you're trying to tell me to do.

I know as a worst case scenario that i can create a batch file to do the following:

@echo off

cd ..
cd consoleportable
consoleportable.exe

My issue with this is it's a lot of work for every portable app that I want to run and it's ugly b/c a cmd prompt window will be open the whole time the portable app is.

I'm using this from my skydrive account/thumb drive so sometimes it's a drive letter and sometimes it's just a folder on the machine. If there's a way to do this with the commands.ini code I'd much prefer to do it that way.

Ken Herbert
Ken Herbert's picture
Offline
Last seen: 5 hours 35 min ago
DeveloperModerator
Joined: 2010-05-25 18:19
Create your command with the

Create your command with the drive letter eg. CMD=D:\PortableApps\ConsolePortable\ConsolePortable.exe

The Launcher should handle any changes that are needed.

Charles Kennedy
Offline
Last seen: 6 years 11 months ago
Joined: 2013-07-02 00:42
Oh ok, so if I were to plug

Oh ok, so if I were to plug the drive into another machine it would automatically handle swapping the letter?

That's pretty spiffy.

Appreciate the help. I'll have to test it and report back my findings.

Thanks!

Log in or register to post comments