Get the new PortableApps.com Platform 10.0: Gorgeous themes, a full portable app store and advanced functionality
Announcing the World's Best Flash Drive: The PortableApps.com Companion | Did you see a malware warning on Friday?

Adding batch file to portable apps menu?

rwttaber - November 3, 2009 - 8:08pm

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!


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.

how about a CGI perlscript

how about a CGI perlscript (generator) or something.

Systems admins would love it!