Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   General Discussions (http://forums.winamp.com/forumdisplay.php?f=1)
-   -   for techy people.. (http://forums.winamp.com/showthread.php?t=95078)

nature spirit 19th July 2002 19:08

for techy people..
 
here is the picture: I'm writing a CD. there is a folder on this CD. I made a shortcut to a file INSIDE this folder, on the root of the CD. Logically, the shortcut wouldn't work once the CD is burned, because the path is not relative. And windows doesn't allow me to write a relative path in the shortcut configuration.

Any idea?? thx in advance.

And yes, the shortcut must be outside the folder, and the files must stay inside the folder. :D

tjb2004 20th July 2002 04:08

Wait, let me get this straight with a picture and some text.

code:

cd ---> 0000000000000000000000


shortcut ---> x-mas

__________
folder ---> | |


file ---> 101000100111


end folder ---> |__________|


end cd ---> 00000000000000000000000

Unless I'm incorrect in my drawing, I don't see why you're so lazy and won't open the folder and click the file.

anamenotused 20th July 2002 07:14

Burn your cd with no shortcuts? All problems solved.

rm' 20th July 2002 07:37

Go to the desktop, right click, "New", "Shortcut". Input the path of the file. So, if you have:

code:

-Root
|--Folder #1
|--Folder #2
\foo.txt
\bar.png



You would use "\Folder #1\foo.txt". Don't worry, Windows will take care of the relative path. I'm not sure if this will work in other operating systems. If this CD is just for your system, you could always use "X:\Folder #1\foo.txt", where X: is your CD drive.

A solution which will work on all operating systems and configurations would be to include an HTML index file in the root folder. Then you could use relative hyperlinks to link to all the files on the disc.

nature spirit 20th July 2002 08:29

Thank you all for trying to help. Well I'm not lazy (not in this at leasat) :) ..It's just that the CD HAS to be done this way. an outside shortcut to resources inside different folders.

Thank you in specific RM. I liked much the idea of a Master html file.. I think i will use it in some other projects.. but unfortunately in this I need solely a windows shortcut.

I tried as you have told me but the dialogue window was not accepting me putting the path the way you stated.. I dont know.. do you have any other ideas?

I still recall someone in the old days told me something about using the % quotes to determine a relative path.. any clue?

tjb2004 20th July 2002 18:08

No.

nature spirit 20th July 2002 18:59

ok.

n_ick2000 20th July 2002 19:12

I'm not sure, but Windows 2000/XP uses some variables to represent paths. So Solitare under Windows XP would be the shortcut path
Quote:

%SystemRoot%\System32\sol.exe
You could see if there is a variable representing the path to the CD rom or something. I'm not sure where you would find it though.

nature spirit 21st July 2002 08:11

I think that's a good start. we're getting there. Thx n_ick2000.

rm' 21st July 2002 08:36

Windows sees CD drives as just another drive, so by default, there is no variable for it. You could create variable on the system this disc was intended for, but that would be kind of pointless; it would only work on that one system. You may as well use "D:\folder\file.ext", or whatever. Couldn't you use a hard link or something? You'll have to do some research on hard linking, but here is something to get you started: http://mrmills.arsware.org/HardLink/

DJ Egg 21st July 2002 13:49

Can't you just use an autorun.inf file instead? :confused:

fwgx 21st July 2002 14:27

autorun.inf files only work linking to .exe files as I found out when I tried to link to a .html file on a CD once.

eleet-2k2 21st July 2002 14:29

If this were during the school year I'd say this soudns like a homework assignment of some sort.

Actually, amking autorun.inf/ini's are only useful if you had wanted to launch a main app that would take care of all the resources on the disk. It seems kind of a waste to always link to a different if it didn't use a lot of the resources you burned to the disk.

silence_rage 22nd July 2002 03:30

Whats wrong with u ppl ...the guy needs some help and he/she is asking ...so stop making a big deal out of it :hang: ,
nature spirit:
Phily Baby is right
take a look at this link it will enable u to do links to docs like HTML docs or any other sort ,

http://www.whirlywiryweb.com/q/shellexe.asp

:cool:

nature spirit 22nd July 2002 13:11

Thanks for the support silence-rage.. In fact ppl here were very supportive and they tried their best. Thanks to you all.

this shellexe file is something very interesting and useful SR. I will be definitely including it. and it opens up many ideas ahead. but the thing is, it requires ALL the files to be on the root, which means we're back to stage 0: I can't point to a file INSIDE The folder from a file on the root. Unless you can store this exe file inside the folder and do a relative shortcut to it from the root.

jaf1230 26th July 2002 02:24

Can you burn a multi-session disc?
If so, then burn everything except the shortcut, then make a shortcut (placed somewhere like your desktop) then put that into the cd (then close the session)

nature spirit 26th July 2002 08:14

fine.. but does this make of it a relative-path shortcut? or I didn't get the idea?

jaf1230 26th July 2002 15:05

Once the file's there, you can make a working, non-relative shortcut

Although it may not work in all computers (mine), it should work in most...

zeit00 26th July 2002 15:41

If I am not mistaken you could create a shortcut like this.

If the file is f:\dir\dir\file.exe

just make the shortcut

.\dir\dir\file.exe

The period will represent the current directory.

Hope this works

jaf1230 26th July 2002 18:21

Theoretically, yes
But that's only if windows supports it
::tests it::
Nope, Windows doesn't allow you to link to .\folder\

zeit00 29th July 2002 12:57

Dont link to the folder create a batch file....Easy to do

Then link to the batch file.

As an example.

I tried linking my Empire earth game from the root directory by creating a batch file.

ee.bat

.\sierra\empire~1\empire~1.exe

Then I created a shortcut of this file and this worked.

nature spirit 29th July 2002 13:07

Did you test this jaf?
and what is your OS Zeit?

zeit00 29th July 2002 13:25

Tested on XP and 2000... I actually copied the file over to another computer and it worked. It should work because it is a simple DOS command. But the thing to remember is that batch files dont recognize the anything but the 8.3 format. So weird directories or file names will have to be put into that format. If you dont know how to do that just use the first six characters and put a ~1 on it.

such as:

My documents = mydocu~1

nature spirit 29th July 2002 13:32

Thx Zeit. I will put this to test myself as well.

jaf1230 29th July 2002 16:55

Yes, I tested it

Quote:

::tests it::
The ./folder/ thing will not work under XP.

::tests it under 95::

Nope.

I guess it's a Liux-only thing (maybe Mac. I dunno)

zeit00 31st July 2002 12:35

Dont link to the folder create a batch file....

If you link to a batch file....Not link using the .\folder thing(that won't work). It works correctly. But you have to create a working BAT file first. The link is not even really necessary. Its just nice to have a good looking icon. I have tested this on about 12 diffrent files. They all work.

nature spirit 31st July 2002 18:25

excuse me Zeit. Could you now please give us the complete picture in order to recapitulate everything.. I mean from the beginning from A to Z.. consider this some of "How to create a relative shortcut for Dummies" series :)

zeit00 31st July 2002 19:06

Sure...

Create a batch file in any directory. There are many ways of doing this. Create a file in notepad and name it with a .BAT extension. Or, go to the command prompt and type COPY CON File.BAT type out the bat file and then hit CNTRL-Z and then Enter. Basically there should be only one line in the bat file. And that points to the file name you want to run. Such as

for quicktime

.\progra~1\quickt~1\quickt~1.exe

Once you have the Bat file created you can then link to the BAT file. Just create a shortcut and then you can make changes to the icon and everything else...

Zeit

zeit00 31st July 2002 19:16

I take that back..1st step is to create the BAT file in the root of the drive.

nature spirit 31st July 2002 20:01

hmm.. ok so the idea is to have a bat file instead of the shortcut on the root.. right?

but you talked about the icon.. a bat file doesn't take icons unless you make shortcuts to it.. so are we back to square 1?

zeit00 1st August 2002 12:41

Just like I said... Create a link(shortcut) to the bat file to allow a diffrent icon, and how it behaves. Close on exit, run minimized....etc..

jaf1230 1st August 2002 14:42

The whole problem was creating a shortcut. If we could create a shortcut to the .bat, then we might as well skip the .bat and just make a shortcut to whatever we want!

You know, I may be able to make a shortcut in a CD with Nero. If you sent the files to me somehow (you can't right now, but I can give you a username and password later [few days, I'm away]) I could probably link to whatever you wanted.

nature spirit 1st August 2002 16:27

ok now I got it Zeit. Sounds interesting Jaf as well.. I'll be waiting for u to come back!

jaf1230 3rd August 2002 17:53

It will be a few days, and I'm not in control of when we come back (stuck with family and they're going to concerts)

And, if you'd like, I could also give you some free web hosting as long as the account's set up for the FTP server (I don't like my FTP server)

That goes for anyone who wants web hosting.
You will be (yournamehere).hopto.org if it's available, and if you (or someone else) helps me get my DNS server up, you'll be (yourname).jaf1230.com

And you get unlimited (within reason) web hosting. If you want extra servers, you have to help me set them up, but I'd be glad to set them up for you


All times are GMT. The time now is 08:51.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.