Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11

Thread: / on C://

  1. #1
    Banned
    Join Date
    Mar 2003
    Posts
    224
    Thanks
    0
    Thanked 0 Times in 0 Posts

    / on C://

    Hi, I am building my website. but after I want to do that thing to go to root directory:


    /images/bla

    instead of:

    C://my desktop/mat/webdesign/mysite/images/blah


    get me? Any way I can restrict it to go back to mysite folder, like it was on net without any major coding?

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    If you have the page in the same folder as the image folder just do:

    images/blah

    if the images folder is in the folder above the page's folder just do:

    ../images/blah

    That what you wanted?
    OracleGuy

  • #3
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if i dont have alot, i just keep it in the same folder. that way you can just type in the file name.

  • #4
    Regular Coder
    Join Date
    Nov 2002
    Posts
    672
    Thanks
    1
    Thanked 1 Time in 1 Post
    It's a common problem that I have to fix between my templates and published copies. Long long ago, there was a program called apend.exe or maybe it was subst.exe, both were for DOS and would let you make a new drive that was just a shortcut to another folder. But Is there a Windows equivalent?

  • #5
    Regular Coder
    Join Date
    Jan 2003
    Posts
    680
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Install a server and set the root directory so it fits your needs.

    If you use IE Windows you can probably get away with the good ol' <base href="">. It doesn't seem to care if the URL contains mixed slashes.
    (o<
    //\ &nbsp; &nbsp; &nbsp; =^..^=
    &nbsp; &nbsp; $!

  • #6
    Regular Coder
    Join Date
    Nov 2002
    Posts
    672
    Thanks
    1
    Thanked 1 Time in 1 Post
    Lets say your folder is C:\site\stuff and you want it to be recognized as the root. Do this at a command prompt:

    subst K: C:\site\stuff

    Now access K via My Computer or something. K is a drive that is actually C:\site\stuff, but now you have the benefit of it being the root. Enjoy!

  • #7
    Banned
    Join Date
    Mar 2003
    Posts
    224
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ?????????????????

    What do you mean?

  • #8
    Regular Coder
    Join Date
    Nov 2002
    Posts
    672
    Thanks
    1
    Thanked 1 Time in 1 Post
    subst k: C:\anything\

    makes K:\ C:\anything

    Now all root hrefs point to K:\ which is really your c:\anything folder or such. Get it?

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can do the same thing with "Tools > Map Network Drive" in windows explorer - map any arbitrary folder to a spare drive letter.

    But I'd recommend you get a web server; then you'd be able to develop server-side scripts as well
    Last edited by brothercake; 04-10-2003 at 12:29 AM.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #10
    Regular Coder
    Join Date
    Nov 2002
    Posts
    672
    Thanks
    1
    Thanked 1 Time in 1 Post
    That sounds great to me, but I need a new computer as it is. It can crash any day now, and I don't have a working cd drive to reinstall windows. It was once so bad I had to reinstall 3 times in 1 month. Curse Compaq computers! But I can't do a thing without a credit card. And don't servers cost around $10,000?

  • #11
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Well servers can yes. But you can get web server software for free, i.e. Apache. And if you got windows NT4, 2000, or XP you can use IIS as your webserver, which is included with the OS.
    OracleGuy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •