I looked everywhere but really don't know how to word it.
I have bigger files on G: drive but don't have much space on my C: drive as it is only a 64 gig SSD. How do I link
files to go to G: when my brother wants a big file?
example: hxxp://www.example.com/files/file1.zip but it reads from C: drive. Making any sense?
Appreciate the teaching I have been studying.
Not sure I'm understanding your question, but hxxp://www.example.com/files/file1.zip does not load files from your local C: drive, it loads them from server. You can't link to files on local drives. If you're running a dedicated server with multiple drives, website and files should all be on same drive.
Actually it's off my PC (Wamp)
file:// reads from local drives, but having said that even then it'd only be accessible to you (as would using http:// on a local server), there'd be no way for your brother to access it unless you actually transferred it to him.
Ok, Thank You very much.
Assuming you have all set so that your brother can access files on your computer at all -
You should be able to do this, using symlinks - https://www.sevenforums.com/tutorials/278262-mklink-create-use-links-windows.html
Just, be careful - and create a reserved folder for this. You don't want to go linking just anything criss cross.
For example
mklink /D c:\httpdocs\virtualfolder g:\media\virtualmaterial
So that you can delete both folders later if you want, without breaking anything.
(This would tell windows that the contents of folder "virtualmaterial" should be shown in "virtualfolder" and should be accessible using the "virtualfolder" path.)
Edit: Though, I think using something like OneDrive might be a lot easier.
Quote from: Aleksi "Lex" Kilpinen on July 07, 2019, 11:37:55 PM
Assuming you have all set so that your brother can access files on your computer at all -
You should be able to do this, using symlinks - https://www.sevenforums.com/tutorials/278262-mklink-create-use-links-windows.html
Just, be careful - and create a reserved folder for this. You don't want to go linking just anything criss cross.
For example
mklink /D c:\httpdocs\virtualfolder g:\media\virtualmaterial
So that you can delete both folders later if you want, without breaking anything.
(This would tell windows that the contents of folder "virtualmaterial" should be shown in "virtualfolder" and should be accessible using the "virtualfolder" path.)
Edit: Though, I think using something like OneDrive might be a lot easier.
I'll get back to you on this and Thank You!
Edit: Works but I just now have to learn how to link it right... Doesn't quite come out that easy for this old dog. But this working. Need to protect folder. Thanks for your help.
Good to hear, I have never tried that with a server setup - so wasn't really 100% sure. Goodluck with it!
Thanks so much. Can't believe I got it working and I'm not very smart. Also got it protected. Having friends try to bust into it to see if I did it right but this is a nice piece of info. Hope someone else can utilize and learn from it.
Thanks again.
No problem, glad you found it useful :)