Hi Madhu
You can only access files on a share when the share folder is mapped. (I.E.
drive Z:)
And mapped drives are only active when you are logged into the computer.
The shares are disconnected when you log off
If you don't mind keeping logged in (which is a security issue) you could
refer to the file with the FSO (Vbscript 5.5. documentation) using the
mapped drive letter. (I.E. Drive Z:
regards
Remie Bolte
----- Original Message -----
From: "madhu kar" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 11:57 AM
Subject: How to Referrer a share name
> Hi All
> i am struck up with a problem of accessing the file
> exists on a network share.
>
> 1) How do i check whether the file exists on a network
> drive which is mapped to a drive letter ?
>
> 2)or how do i check whether a file exists on a other
> computer where in i have only read only permissions.
>
> Here is the program i have writter which doesnt works.
> any help will be appericiated.
>
> StrOrginaldocpath =
> "\\Computername\sharename\Docname.doc"
>
> Set fso = CreateObject("Scripting.FileSystemObject")
> fileExists = fso.FileExists(strOrginaldocpath)
>
> Here it is always returning false even though the file
> exists at the path.
>
> Can some one guide me.
>
> Thanks for your co-operation.
> from
> madhu
>
>
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
>
> ---
> You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
%%email.unsub%%
>
---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]