[ciapug] File linking over mapped network drives

David Champion ciapug@cialug.org
Mon, 17 May 2004 15:32:00 -0500


Chris Hettinger wrote:

>> R: is the drive mapping and will be mapped the same for all of our users.
> 
> I thought I wrote that. :)

Oh. You expect us to actually read your entire email?

Do you have any non-windows (mac, unix...) workstations? If so, they 
don't know what "R:" means.

> smb share won't work in this case and yes the the mapping will be a part 
> of our default drive mappings for all users internally. Very little 
> possiblity it would to change unexpectedly. And if so we'll update the 
> DB records accordingly.
> 
> PLUS, the best part, I just wrote the interface and it's not hardcoding 
> the drive, that's the in db records for the path and (Drum role) that 
> isn't my problem nor responsibility :) (yay)
> 
> :) ha ha.

"drum role" = the actor playing the little drummer boy
"drum roll" = what the little drummer boy plays on his drum

:) ha ha HA!

-dc

> -ch
> 
> David Champion wrote:
> 
>> I really don't like hard-linking to a drive letter... does everyone in 
>> the company have "R:" mapped to the same location? What if that 
>> mapping changes?
>>
>> If the intranet server can see the file server, you could also look at 
>> mapping the drive as a smb mount on the server, that way the directory 
>> mapping is totally server side. That's done with a command like:
>>
>> mount -t smbfs ...
>>
>> -dc
>>
>> Chris Hettinger wrote:
>>
>>> Curious,
>>>
>>> I am listing links to PDF files on html page, the files are stored on 
>>> a network drive that my machine has a drive mapped to (R:).
>>>
>>> I am pulling the file path (R:\dir\) and file name (filename.pdf) 
>>> from a database, then constructing the link to the file.
>>>
>>> However when I click on the link nothing is happening.
>>>
>>> I went back and added the 'file' prefix but that isn't making a 
>>> difference. I thought of the prefix after opening a local document in 
>>> a browser it appends 'file:///' before the file path... though I may 
>>> need to do that.
>>>
>>> ex: file:///R:\dir\filename.pdf
>>>
>>> R: is the drive mapping and will be mapped the same for all of our 
>>> users.
>>>
>>> Again the issue is that clicking the link seems to trigger nothing.
>>>
>>>
>>> Thanks for any thought on this.
>>> -ch