I need help with html ...

Discussion in 'Web Design & Coding' started by lechtard, Aug 8, 2003.

  1. lechtard

    lechtard Guest

    Here is one for you gurus, as I am still learning. anyway - I am making a autorun disk, the autorun is going to look like a webpage. I am trying to find an html code that will let me use it in any cd-rom no matter what drive letter it is.

    Otherwards, If I make the file:\\\ link to e: it will only work in cd-roms that are drive lettered e:. I want to be able to have something like file:\\\{source disk}\file.exe .. this way it will work in any cd-rom no matter what the drive letter is ..

    does anyone know how to do this ???
     
  2. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Code:
    file:///./folder/file.exe
    that would give a relative link from where-ever the html file is.

    So if that was on E:\ that link would be to E:\folder\file.exe and if it was on F:\html\files it woulf be F:\html\files\folder\file.exe and so on..
     
  3. scriptasylum

    scriptasylum Moderator

    Messages:
    832
    Location:
    Des Moines,IA
    As a matter of fact I do have such a tool, it's an exe that autorun "calls", which in turn, runs the HTML file you specify. Unfortunately, it is at home and I'm at work; and it'll be about 8-9 hours before I get back. :(

    I can't even remember where I got it because it was quite a while ago, I don't think it's "illegal". A quick search on "autorun HTML" in google turns up many hits. All that I found on the NET are shareware. Maybe one of those will fit your needs? Do the same query at download.com to see some of the shareware versions.
     
  4. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
  5. Corvette

    Corvette Sauske!

    Messages:
    761
    But there is a way! Create a file called Autorun.inf and type in the file:

    Code:
    [Autorun]
    open=file.exe
    
    It will work (Hey you can even set a icon for the disk using Autorun.inf) Just add:
    Code:
    [icon]
    file=cd.ico
    
     
  6. lechtard

    lechtard Guest

    Thanx for the help m8's - I'll check them all out ..
     
  7. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    ViperSnake you would need

    open=file.exe

    for that to work
     
  8. Corvette

    Corvette Sauske!

    Messages:
    761
    Note that I updated it to match what you said Geffy.
     
  9. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
  10. lechtard

    lechtard Guest

    O.k I tried everything with this and all it wants to do is download it, I'm thinking I might need to have a vbscript or something - does anyone remember where there is a vb script at that will let me do it ??
     
  11. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Well instead for opening the exe file you just put in index.html. Then from there use recursive links for it, so when you <a href='./otherfile.html'>link</a>. make sure its recursive and not relative.

    P.S. Use double quote instead of ', i am in Switzerland at the moment, keyboard is swiss.
     
  12. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    Something like this might work:
    Code:
    [Autorun]
    open=start index.html
     
  13. lechtard

    lechtard Guest

    O.k there a couple of diff answers here let me clarify it a little.

    I am making a autorun cd -- This is going to be like a webpage. I have it all working "EXCEPT" the links to execute the files. I want it to execute and install the prog when I click on the link, what it wants to do now is download it: I tried relative links - they don't work, I tried the macro "<A href="HECOM://OPENFILE=file.exe>" that don't work, I tried "./file.exe", that don't work.

    I think there has to be a vbscript or Java script to do it - I just can't find it and can't figure this out for the life of me, I know there is a way to do it.
     
  14. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    Aha, I get it. Might be tricky.

    Have you tried <a href="file:///./thefile.exe">thefile</a> instead of http://?
     
  15. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    first zedric using HTTP:// would work if it was read from a cdrom, second the other one just tells iexplore to visit that file, and then it goes, ah exe, lets download.
     
  16. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    I thought it would be possible to trick IE with the file:/// instead of http://.
    But I suppose the patched that huh?
     
  17. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    This will work in any CD drive letter so long as you are trying to run it in Windows
    Also that autorun segment is in use on a CD I have and I just popped it in and it ran just fine. It opened index.htm with my default web browser

    If you want to add an option in the popup menu for the CD drive to lets say open a README.txt file then you can have this

    So you know this was all in that MSDN link I first posted in this thread
     
  18. lechtard

    lechtard Guest

    first I would like to thank you for the help you are are giving .. but it's not what I'm looking for. Let me explain it this way: You know how when you click on a link on active desktop it runs the prog ?? (I already read the tuturial and such that maddmatt posted) is there any way to have that so it works the same way on a autorun cd, as well as bypass the activex warning ??

    the Html page is done - it loads great and it works great, just when I click on the link to run the executable it tries to download it, I want to run it... So I was thinking that there should be some way to make a vb script to have it run instead of download, you know what I mean ??
     
  19. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    ah
    PCPLUS used to do something similar to this. But each link to be opened was sent through a piece of java code and if it was .zip, .exe it was opened/run
     
  20. lechtard

    lechtard Guest

    thanx geffy - Now if I could find the code I would be set ...