Page 1 of 1

File Icon and Start->Programs

Posted: Wed Dec 17, 2008 3:09 pm
by reisve
Hi all

I've been looking allover the forums and could not get a satisfactory answer for this:
  • How to put a shortcut for an aplication in the desktop
    How to put a shortcut for an application in the Start->Programs->Startup or create a new folder in the Start->Programs and put the shortcuts in there
    How to put an icon in the application window(s) (on the top left before the title of the window)
I know the setup Library has functions for some of these questions, but it is in germany...

Any one willing to help?

Thanks

Posted: Wed Dec 17, 2008 3:22 pm
by Kaeru Gaman
3. PB-IDE -> Compiler Options

2. + 1. the Current User Path is an environment variable. (don't remember its name right now)
you can retrieve that path and perform standard file operations to it.

Posted: Wed Dec 17, 2008 3:36 pm
by reisve
Thanks
3-I'm using jaPBe. Couldn't find anything
1+2 - I want the AllUsers. Can get the path (hardcoded, if I have to). But how do I create the .lnk file?

Posted: Wed Dec 17, 2008 3:46 pm
by Kaeru Gaman
> hardcoded, if I have to

not very useful, since it means your program will not be portable to other national windows versions.

better search for the correct environment variable.


> how do I create the .lnk file?

I don't know how to create a .lnk on-the-fly,
there should be a way to let the API create it like the Link-Assistant does.

Posted: Wed Dec 17, 2008 3:55 pm
by harff182
Kaeru Gaman wrote:better search for the correct environment variable.
ALLUSERSPROFILE :wink:

Posted: Wed Dec 17, 2008 4:03 pm
by reisve
Thanks harff182

Posted: Wed Dec 17, 2008 4:10 pm
by harff182
reisve wrote: But how do I create the .lnk file?
If you use the search-function, you will find some threads about shortcuts (.lnk).
I've also seen some code, but that may be outdated.
I'm not at my PB-computer, so I can't do more ATM...

hth...
scholly

Posted: Wed Dec 17, 2008 4:52 pm
by reisve
I've been looking allover the forums and could not get a satisfactory answer for this:
I searched the forums...

I found solutions in the code archive. Not what I was looking for but it will do

Posted: Wed Dec 17, 2008 7:18 pm
by rsts