You are here

Adding batch file to portable apps menu?

4 posts / 0 new
Last post
rwttaber
Offline
Last seen: 16 years 2 weeks ago
Joined: 2009-07-14 18:57
Adding batch file to portable apps menu?

Is there a way to show a batch file in the portable apps menu? I am using platform 2 beta 3.

Does it only pick up .exe?

I was thinking of writing a program in C++ to open it but that seems like it would be a lot of work if the platform could be configured to show it.

Thanks!

digitxp
digitxp's picture
Offline
Last seen: 7 months 1 week ago
Joined: 2007-11-03 18:33
EXE

Nope, no way it can launch it. Well actually... There is a way, but it's fairly invlolved:

  1. Make an App folder, and an appinfo folder inside.
  2. Make an appinfo.ini file.
  3. Put this into the file, replacing the stuff in braces:
    [Details]
    Name={Name}
    AppId={Namew/ospaces}
    Publisher=
    Homepage=
    Category=
    Description=
    Language=Multilingual
    Trademarks=
    InstallType=
    
    [License]
    Shareable=true
    OpenSource=true
    Freeware=true
    CommercialUse=true
    
    [Version]
    PackageVersion=0.0.0.0
    DisplayVersion=0.0
    
    [SpecialPaths]
    Plugins=NONE
    
    [Control]
    Icons=1
    Start={BatchFileinthemainfolder}
    ExtractIcon={IconFile}
    
  4. Restart the menu.

Or do it the easy way: compile your batch files, or better yet, switch to AutoHotKey (which has some pretty neat functions, including GUI and keyboard hooks).
Good luck!

Insert original signature here with Greasemonkey Script.

muswell
Offline
Last seen: 16 years 1 month ago
Joined: 2009-10-25 06:58
how about a CGI perlscript

how about a CGI perlscript (generator) or something.

Systems admins would love it!

Txupport
Offline
Last seen: 6 hours 9 min ago
Joined: 2026-02-04 01:26
Bit of a note

While this works great (Thanks by the way)

Some notes here, just in case there was any confusion for anyone that may come across this in the future.
1) Make a folder for the .bat and or other files related to it inside your "PortableApps" folder, place the files in that folder.
2) Make a folder named "App" in that folder.
3) In the "App" folder you just made, make an "appinfo" folder.
4) Create a new Notepad file in the "appinfo" folder and paste the given code into it, replacing the braced "{ }" entries with your .Bat info (Get rid of the braces completely, don't just put your info between them), and rename the file "appinfo.ini" (make sure you have file name extensions enabled under your folders "View" settings.
5) Either restart the PortableApps program completely, or just refresh the app icons.
6) Profit!

Log in or register to post comments