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 New Folders to the Platform - A Q&D solution

solanus's picture
solanus (Homepage) - August 21, 2009 - 7:43am

One of the more requested enhancements to the PA platform is the addition of more folder shortcuts, other than the default Documents, Music, Pictures, Video, and Explore.
While you can't add them to the same right-hand side of the platform yet, it is easy to make shortcuts to folders in with the app shortcuts.

This example makes shortcuts to two custom subfolders of Documents: Web Pages and Work.

First create your subfolders:

X:\Documents\WebPages
X:\Documents\Work

Then create the following folder structure:

X:\PortableApps\Folders\App\Appinfo

Then, make or copy icons for each folder, and place them in AppInfo with the names appicon1.ico and appicon2.ico

Finally, make a text file containing the following, and save in AppInfo as appinfo.ini:

[Format]
Type=PortableAppsFormat
Version=0.91

[Details]
Name=Folder

[Control]
Icons=2
Start=..\..\Documents\
Start1=..\..\Documents\WebPages\
Name1=.Web Pages
Start2=..\..\Documents\Work\
Name2=.Work

So you should have the following

X:
|_Documents
|    |_WebPages
|    |_Work
|
|_PortableApps
     |_Folders
         |_App
             |_AppInfo
                 |_appicon1.ico
                 |_appicon2.ico
                 |_appinfo.ini

Now, Refresh App Icons, and you should see two new icons in your app list, that will open those folders.
I started the names with a "." so that they would appear at the top, but you can also make them favorites, and rename them as you would any other.


Nice trick!

Nice trick!

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

works also with other non exe files

like pdf etc

"Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis .." Friday Next -
"May The Schwartz be with You!" Yogurt the Yoda

Yep, as long as they have an

Yep, as long as they have an association. I'd like to see what happens when you've got CAFE or Portable File Associator running!

When I find myself in times of trouble Mother Mary comes to me
Speaking words of wisdom, let it be.
And in my hour of darkness she is standing right in front of me
Speaking words of wisdom, let it be. Whisper words of wisdom, let it be.

I think i broke something

Its not working for me.

i did this in dos commands,

E:>md documents
E:>md documents\work
E:>md documents\webpages
E:>cd portableapps
E:\PortableApps>md Folders
E:\PortableApps>md Folders\App
E:\PortableApps>mf Folders\App\Appinfo

Copied two icons into folder E:\PortableApps\Folders\App\AppInfo
Created INI file in E:\PortableApps\Folders\App\AppInfo

01/03/2009 09:43 AM 22,486 appicon1.ico
01/03/2009 09:43 AM 22,486 appicon2.ico
06/01/2010 02:31 PM 214 appinfo.ini
3 File(s) 45,186 bytes

appinfo ini contains
[Format]
Type=PortableAppsFormat
Version=0.91

[Details]
Name=Folder

[Control]
Icons=2
Start=..\..\Documents\
Start1=..\..\Documents\WebPages\
Name1=.Web Pages
Start2=..\..\Documents\Work\
Name2=.WorK

Closed Portableapps.com platform and re-opened tested and noting appears

What version of Portable Apps.com?

I've tested this in 1.5.2 (the current release) and 2.0 beta 3, and it works.
Assuming that you have the Portable Apps Menu installed into the root of your drive, and that you aren't using a fork like Geek Menu, it should work.
Check the permissions of the folders, in case something funky is going on.

Don't know what else it could be.
Wish I could be of more help!

When I find myself in times of trouble Mother Mary comes to me
Speaking words of wisdom, let it be.
And in my hour of darkness she is standing right in front of me
Speaking words of wisdom, let it be. Whisper words of wisdom, let it be.

PA.c Format

Maybe the launcher requires in its newer versions also newer versions of the apps.
So try changing the version under[Format] into 1.0

EDIT: Of course this can't be the problem as it works with 1.5.2 and 2.0b3

Does anybody know if the names under "Start" are case sensitive?

"Der Klügere gibt nach, deshalb regieren Dumme die Welt."

Ya, I think Im also doing something wrong

Im trying to add specific File shortcuts to the list. The Icons and title come up perfectly, but there is no action/response when I click either.
the ini file looks like this

[Format]
Type=PortableAppsFormat
Version=2.0beta3

[Details]
Name=Folder

[Control]
Icons=2
Start=F:\Documents
Start1=F:\Documents\testmovie\Fullmetal_Alchemist_Brotherhood_-_42.mkv
Name1= Full Metal Alchemist: Brotherhood - 42
Start2=F:\Documents\Music\FMA_-_Period.mp3
Name2= FMA_-_Period

Ive tried this with and without underscores for the file spaces. Ive also tried just directories/folders instead of specific files, and even gone down to the basic, exactly as the example shows, and still nothing happens.
Please help.
Also, a question about all this. Is there anyway to make the files within the drive associated to a portableapp installed on the drive?
So for instance, set it up so that I have an mp3 listed on the platform, and (regardless of what computer the drive is plugged into) the mp3 opens into xmplayer.

[INI file put in <pre> block - mod Chris]
Edit - Thanks Chris, sry

I see the problem

Your [Format] section should look like this:

[Format]
Type=PortableApps.comFormat
Version=1.0

Ignore silly users that PM you on IRC. What? You're one of them?

still nothing

kk, I changed it to your suggestion, but It still isn't responding Sad
Im sure you recognized this and thus suggested the change, but I am running 2.0 Beta 3. Does that make a difference?
Thank you for your help, response, and time ^_^ its greatly appreciated.

...

The Version= setting isn't the version of your Platform, it's the PortableApps.com Format specification version, of which the current revision is 1.0.

oh

Ah, oki doki. Well does anyone see anything else that i might be doing wrong in the ini code?

don't use a full path. use

don't use a full path. use .. for every folder you need to go up. In this situation, you need ..\..\Documents\whaveter.etc

Try that.

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

Still not working T_T

I tried it, but It still doesnt seem to be working.
This is how my ini file looks now.

[Format]
Type=PortableApps.comFormat
Version=1.0

[Details]
Name=Folder

[Control]
Icons=2
Start=F:\Documents
Start1=..\..\testmovie\Fullmetal Alchemist Brotherhood - 42.mkv
Name1= Full Metal Alchemist: Brotherhood - 42
Start2=..\..\Music\FMA - Period.mp3
Name2= FMA - Period

File Associations may be the

File Associations may be the problem.
If the computer does not have a file association for the mkv file, you won't get an error, it just won't do anything.
Substitute a text file and see if that opens.

There are 2 different projects that will allow you to have portable file associations:
eXpresso: http://portableapps.com/node/22055
Portable File Associator: http://portableapps.com/node/15583

Personally, I wouldn't put individual files in the PA.c platform list, mostly because I've got too many things there already! I'd put my frequent flier files in a folder, and use Portable File Associator.

But, to each his/her own.

When I find myself in times of trouble Mother Mary comes to me
Speaking words of wisdom, let it be.
And in my hour of darkness she is standing right in front of me
Speaking words of wisdom, let it be. Whisper words of wisdom, let it be.

It works

I feel very very stupid. First off, Thank you for all of your responses and your time, thank you for your patience.
The problem was in the start line.
My original ini start line looks like this

Start=F:\Documents\

and now I changed it to

Start=..\..\Documents\

And it works perfectly.
I still appreciate the suggestion of having eXpresso installed.
Ive installed it and VLCPortable, that way regardless of what
host computer the drive is plugged into, media files will play
on VLCPortable. Thank you again.
(To Mod: Sry wanted each ini start line in its own box, but all
it did was create a box within a box within a box T_T)
[Fixed your pre tag - mod Chris]

It's all good!

You'll find that most people here are happy to help - and we all miss something obvious from time to time.

Peace.

When I find myself in times of trouble Mother Mary comes to me
Speaking words of wisdom, let it be.
And in my hour of darkness she is standing right in front of me
Speaking words of wisdom, let it be. Whisper words of wisdom, let it be.

To Solanus:

Sry to get a bit off topic from the original thread topic, but I had a couple of questions and you seem very knowledgeable. can you email me at varxtis@hotmail.com?

Better obfuscate that e-mail

Better obfuscate that e-mail address a bit, varxtis, or you'll have spambots hitting you pretty quickly. (You can still edit your post; that's why I haven't replied to you)
Something more like varxtis [at] [hotmail] would probably be safer.

Cheers!

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

He'll need a mod to fix it

Once someone replies to your comment, you lose edit rights!

When I find myself in times of trouble Mother Mary comes to me
Speaking words of wisdom, let it be.
And in my hour of darkness she is standing right in front of me
Speaking words of wisdom, let it be. Whisper words of wisdom, let it be.

...

Which is why computerfreaker didn't directly reply to it if you didn't notice.

*sigh* no I didn't notice.

*sigh* no I didn't notice.

When I find myself in times of trouble Mother Mary comes to me
Speaking words of wisdom, let it be.
And in my hour of darkness she is standing right in front of me
Speaking words of wisdom, let it be. Whisper words of wisdom, let it be.

Somewhat of a twist...

I'm trying to do this on 2.0 beta 4
My Directories are:

F:\Documents\Roms
F:\Documents\Roms\Rom Hacks
F:\Documents\Roms\Rom Hack Tools

My .ini:

[Format]
Type=PortableAppsFormat
Version=1.0

[Details]
Name=Folder

[Control]
Icons=3
Start=..\..\Documents\
Start1=..\..\Documents\ROMs\
Name1=Rom Files
Start2=..\..\Documents\ROMs\Rom Hacks\
Name2=Rom Hacks
Start3=..\..\Documents\ROMs\Rom Hack Tools\
Name3=Rom Hack Tools 

I have all three .ico files in there and did what you said, but nothing special appears. HELP!

"As soon as a man is born, he begins to die"

"Ask me no questions, I'll tell you no lies"

"Failure is not falling down, you fail when you don't get back up"

Your ini worked for me in 2.0b4

Make sure that the folder structure is correct.

F:
|_Documents
|    |_ROMs
|        |_Rom Hacks
|        |_Rom Hack Tools
|
|_PortableApps
     |_Folders
         |_App
             |_AppInfo
                 |_appicon1.ico
                 |_appicon2.ico
                 |_appicon3.ico
                 |_appinfo.ini

Also, did you refresh the menu? (Options>Refresh App Icons or restart the menu).
Even if you didn't have any icons, as long as your appinfo.ini is exactly as you describe it and the folder structure is like it is above, you should see the names in the menu! Remember, it sorts alphabetically, so you will need to scroll to the "R"s.

When I find myself in times of trouble Mother Mary comes to me
Speaking words of wisdom, let it be.
And in my hour of darkness she is standing right in front of me
Speaking words of wisdom, let it be. Whisper words of wisdom, let it be.

Something Interesting

I did all that (and YES, I have the .ico files), but it still didn't work. But I found out how to fix that.

You see, I made a ".txt" document and just put ".ini" in the file name. So I thought that could be the problem and searched for .ini files, copy and pasted them, changed the code in them to mine, and it worked. Laughing out loud

Thanks for the good tut.

"As soon as a man is born, he begins to die"

"Ask me no questions, I'll tell you no lies"

"Failure is not falling down, you fail when you don't get back up"

you might have ended up with

you might have ended up with something like .ini.txt. Big issue on another forum Smiling

I'm glad you got it sorted.

Next time you might try something like notepad++ or geany and making sure it saves only as a .ini file Smiling

Have fun Smiling

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

Documents Folder

Is there a way to get rid of the default folders or rename them to what we want.. i know you can't add more to the right hand side, but can you rename them?

not yet

I think that that is planned for a future release.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate