You are here

Link to document?

23 posts / 0 new
Last post
deived
Offline
Last seen: 17 years 3 weeks ago
Joined: 2007-04-24 11:55
Link to document?

I looked around and didnt find anything specific on this. I'm sure it's here somewhere but couldnt find anything clear.

PAM searches for .exe to list items in the menu. Is there a way to link to any other type of document? I use StickWiki which is a single .html and I'd like to be able to access it from PAM. The way I access now is through a shortcut on the root of the drive to point to the wiki which is in /documents/wiki/stickwiki.html

Simeon
Simeon's picture
Offline
Last seen: 9 years 7 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Nope

"There is a computer disease that anybody who works with computers knows about. It's a very serious disease and it interferes completely with the work. The trouble with computers is that you 'play' with them!" - Richard Feynman

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

deived
Offline
Last seen: 17 years 3 weeks ago
Joined: 2007-04-24 11:55
Well then... I guess throw

Well then... I guess throw this in the REQUEST pile.

arqbrulo
arqbrulo's picture
Offline
Last seen: 4 years 3 months ago
Joined: 2006-08-10 16:38
The only way

The only way is to make an exe to open the html. For example, a bat converted to exe with the line ".\FirefoxPortable.exe ..\Documents\Wiki\Stickwiki.html"
and put the new exe next to FirefoxPortable. If that doesn't work, there are other ways to do an exe.
---------------
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
"Sometimes I worry about being a success in a mediocre world." -- Lily Tomlin

"In three words I can sum up everything I've learned about life: it goes on." -- Robert Frost
"In three words I can sum up everything I've learned about life: baby ain't mine." -- Adam Holguin

deived
Offline
Last seen: 17 years 3 weeks ago
Joined: 2007-04-24 11:55
tip?

Any tips there? I've never done that. I found a bat to executable converter, but it converted it to .com for command line. (booo).
Also, the bat was in the same dir as wiki.html, so all I needed was a line with wiki.html. Is that all I'll need in the bat (doubt it, Im sure there's more)?

**EDIT

I got it to work with this app
http://www.battoexe.com/?gclid=CLv21sSB3IsCFRK1YgoduxFAcg
but its a trial version and I have to Press Any Key on the cmd prompt when it executes. Know of any open source or freeware?

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 7 months ago
Joined: 2006-01-06 21:27
Here:

http://cubegames.net/downloads/Stickwiki.exe
It should work. (For the interested, see the source)
Save it into the same folder as FirefoxPortable.exe
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.

"If you're not part of the solution, you're part of the precipitate."

Patrick Patience
Offline
Last seen: 4 years 4 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Ryan.

You're such a wonderful person, that launcher's HUGE ust have taken you HOURS. :

Edit:Ryan, the setup won't executs. I re downloaded too. :S

And um, what installer do you use?

_____________________________
I felt so different without a signature.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 7 months ago
Joined: 2006-01-06 21:27
It's not an installer

It's the raw EXE. "Save as" it into your FirefoxPortable directory.
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.

"If you're not part of the solution, you're part of the precipitate."

deived
Offline
Last seen: 17 years 3 weeks ago
Joined: 2007-04-24 11:55
Thanks Ryan. That sorta

Thanks Ryan. That sorta works.
It works fine if I use Firefox Portable from my USB, but I usually use it at work and use the Firefox on the PC. Since that's already running, I can't run the portable Firefox. The source specifies Firefox portable. I grabbed NSIS to see what I can do, but I'm not sure how to specify the systems Firefox (if its running) OR portable Firefox. I also tried to see if I can just have it open the document with the default app, but my attempts failed (because I didn't know what I was doing).

I also tried a trick to use iexpress.exe that I found while searching. It creates the exe based on my batch file, but it doesn't work (again, probably because I don't know what I'm doing).

deived
Offline
Last seen: 17 years 3 weeks ago
Joined: 2007-04-24 11:55
Nevermind!

w00000t!!
Got it! Just a small modification. Gotta love it when an app has good documentation. Here' the code btw.
---

Name "Launch StickWiki"
OutFile "Stickwiki.exe"
SilentInstall silent

Section
ExecShell "open" "..\..\Documents\Wiki\stickwiki.html"
SectionEnd

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 7 months ago
Joined: 2006-01-06 21:27
Actually

That won't open FFP. That opens the default browser, which on some systems would be Internet Explorer. Unless, of course, that's what you want.
Firefox Portable should pass the URL along to Firefox if it's already running anyway.
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.

"If you're not part of the solution, you're part of the precipitate."

deived
Offline
Last seen: 17 years 3 weeks ago
Joined: 2007-04-24 11:55
Yea that works though.

Yea that works though. That's how I'd like to have it. I use Portable Menu on my USB while at work. We're on Win2k right now so it can be rather slow. I'd prefer it to open in the default browser since I dont use FFP as much (take too long to launch at work).
Thanks for the help man.

grannyGeek
Offline
Last seen: 15 years 10 months ago
Joined: 2007-03-14 23:42
A free easy-to-use bat2exe converter

http://www.f2ko.de/English/b2e/b2e.html

I have used it to convert several bat files to open documents and/or applications, although I haven't yet needed to specify the program that opens a document, I've always gone with default associations.

This little converter has options, to assign a custom icon (from a stand-alone ico file), and create either console or "Ghost" application to hide the console.

Hope this helps.

thetrueholly
Offline
Last seen: 13 years 8 months ago
Joined: 2007-10-07 10:45
i want to show a website-link in the menu (mod R31)

1) so i copied a html-file of the website "atoolo" into the firefox-folder

2) i created a bat-file with the content as discribed above:

Name "Launch atoolo"
OutFile "atoolo.exe"
SilentInstall silent

Section
Exec `"$EXEDIR\FirefoxPortable.exe" "PAM R31 Mod\PortableApps\FirefoxPortable\atoolo.html"`
SectionEnd

3) i converted this to an exe-file called "atoolo.exe" with a bat-converter

4) but when i start now this exe-file, nothing happens; the firefox-browser doesn't start and search the atoolo-website.

what do i wrong???

digitxp
digitxp's picture
Offline
Last seen: 12 years 8 months ago
Joined: 2007-11-03 18:33
Wrong Language

That is NSIS, not BAT.
You'll need NSIS to compile the script.
@John: I think there should be a wizard that let's you make your own launcher for an important non-exe file. I can make the script if you want. (Man, I'm getting good at NSIS :))

Insert original signature here with Greasemonkey Script.

NeoRame
NeoRame's picture
Offline
Last seen: 3 years 6 months ago
Joined: 2007-05-11 09:12
but when you will create a

but when you will create a batch file (and then convert it to an exe)

then please take a look here for creating exe´s that open a website in FF Portable:

https://portableapps.com/node/11891#comment-69084
look at point 2 (create LINK.BAT)

regards
NeoRame

Hell was full, so I came back!!!
Sorry for my lousy English!!!

thetrueholly
Offline
Last seen: 13 years 8 months ago
Joined: 2007-10-07 10:45
help again please :-(

unfortunately it doesn't work again...
i created now a bat-file with the path to my firefox:

START PAM R31 Mod\PortableApps\FirefoxPortable\FirefoxPortable.exe -url atoolo.de

an converted it to an exe called "Link".

but when i open it, i only get an error "PAM konnte nicht gefunden werden..." (in english: "PAM couldn't be found")

even when i paste the current path to my usb-stick in the commandline:

F:\START PAM R31 Mod\PortableApps......

i only get this error (although i rather want a relative path to firefox as the path "F:" changes sometimes.

??? ...thanks again for help Wink

NeoRame
NeoRame's picture
Offline
Last seen: 3 years 6 months ago
Joined: 2007-05-11 09:12
o sorry i forgot that you

o sorry i forgot that you start your bat from your app folder (the bat in my tutorial was for the theme folder) here the right code:

START ./../FirefoxPortable/FirefoxPortable.exe -url atoolo.de

and when you have compile your bat to an exe, store your file in:

F:\START PAM R31 Mod\PortableApps\Foldername_of_your_choise\Link.exe

kind regards
NeoRame

Hell was full, so I came back!!!
Sorry for my lousy English!!!

thetrueholly
Offline
Last seen: 13 years 8 months ago
Joined: 2007-10-07 10:45
great, i works now but

only when i paste the "F:" in the command line. as i don't have any idea about all that, my question: is there a way to start the browser by using a realtive path in the bat/ exe-file because when i connect my usb-stick on an other computer, it gets maybe an other device-letter and my exe won't work any more.

wk
wk's picture
Offline
Last seen: 10 months 3 weeks ago
Joined: 2007-09-05 12:31
kurzer Einschub auf Deutsch

wenn die exe/bat in einem beliebigen Ordner unter PortableApps liegen soll, dann
lautet der Text in der bat

Start .\..\..\..\PortableApps\FireFoxportable\FirefoxPortable.exe -url PTC.Kain-Planet.de

wenn aus der bat dann eine .exe wird, dann kann sie in einen beliebig benannten Ordner unter /PortableApps/Dein Ordner/ (wird von Pam erkannt)oder sogar in Documents/Dein Ordner abgelegt werden (muß dann über Documents/ Dein Ordner aufgerufen werden).
Wenn die exe/bat im gleichen Ordner wie FirefoxPortable liegt, dann mußt Du einfach ein paar Pünktchen, Schrägstriche streichen.
Einfachster Weg zum Ausprobieren: bat mit notepad creieren, Pfad wie schon von Neorame angegeben einfügen. Bat in den FirefoxOrdner speichern, anklicken, ggf weitere relative Pünktchen wegnehmen, hinzufügen,bis es funktioniert fertig
EDIT:Das funktioniert allerdings nur mit der onlineVerbindung, wenn die website auch als offline Startseite verwendet werden soll, dann kann man sie über die Verwendung der FFPortable.ini aus dem other/source Ordner einbinden. Möglicherweise geht es neuerdings sogar auch mit Aufrufen der Html und festlegen als Standardseite im Firefox..

"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

NeoRame
NeoRame's picture
Offline
Last seen: 3 years 6 months ago
Joined: 2007-05-11 09:12
wie gesagt der code war für

wie gesagt der code war für den theme ordner der ja zwei ebenen tiefer liegt

START ./../FirefoxPortable/FirefoxPortable.exe -url atoolo.de

sollte eigentlich klappen, bei mir hat es jedenfalls (auf zwei rechnern)

wenn die link exe/bat im gleichen ordner wie firefox liegt dann sollte auch dieser code reichen:

START FirefoxPortable.exe -url atoolo.de

grüsse
NeoRame

Hell was full, so I came back!!!
Sorry for my lousy English!!!

wk
wk's picture
Offline
Last seen: 10 months 3 weeks ago
Joined: 2007-09-05 12:31
.. und natürlich möchten wir auch darauf hinweisen...

dass unter der bei mir aufgelisteten url jede Menge Themes für Mod 31 mit buttons zu finden sind, bei denen die vorgefertigte url in der entsprechenden button bat einfach ausgetauscht werden kann, z.B.
http://ptc.kain-planet.de/details.php?file=131 oder
http://ptc.kain-planet.de/details.php?file=214 ..
nur so, um das Gefühl für die relativen Pfade zu bekommen... Wink

"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

NeoRame
NeoRame's picture
Offline
Last seen: 3 years 6 months ago
Joined: 2007-05-11 09:12
this is the a relative

this is the a relative path... i have test it on my pc´s with your structure, look HERE

how looks your folder structure?

F:
-[START PAM R31 Mod]
---[PortableApps]
-------[FirefoxPortable]
-----------FirefoxPortable.exe
-----------[App]
-----------[Data]
-----------[Other]
-------[YourFolderName]
-----------Link.exe

When you have this structure and the code wont work, try this:

START ../FirefoxPortable/FirefoxPortable.exe -url atoolo.de

Hell was full, so I came back!!!
Sorry for my lousy English!!!

Log in or register to post comments