Mapped drive problem in service mode

V

vijay

Platform: VC 7.0, Windows 2000



Hi

I have developed a service application and facing problem as given below:



1. Service Application is able read a file present in the mapped drive
folder when user logged on.

2. But Service Application is not able to read file from the mapped drive
folder when user logged off from the system.



I want to know, how can I read file from mapped drive folder when user
logged off from the system.



Regards

Vijay
 
D

Dave Patrick

Mapped drives won't exist when no one is logged on. Use UNC paths instead.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Platform: VC 7.0, Windows 2000
|
|
|
| Hi
|
| I have developed a service application and facing problem as given below:
|
|
|
| 1. Service Application is able read a file present in the mapped drive
| folder when user logged on.
|
| 2. But Service Application is not able to read file from the mapped drive
| folder when user logged off from the system.
|
|
|
| I want to know, how can I read file from mapped drive folder when user
| logged off from the system.
|
|
|
| Regards
|
| Vijay
|
|
 
R

rajaroydeep

Vijay,

I am also trying the same thing. But the service is unable to read th
file present in a mapped drive. It is throwing an exception saying tha
the path not found. But the same code works in a Windows application.

Can you please share the code snippet which you are using to acces
files over mapped drive?

Please forward any reply to (e-mail address removed)

Thanks in advance....

Regards,
Joydeep

Dave said:
*Mapped drives won't exist when no one is logged on. Use UNC path
instead.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Platform: VC 7.0, Windows 2000
|
|
|
| Hi
|
| I have developed a service application and facing problem as give
below:
|
|
|
| 1. Service Application is able read a file present in the mappe
drive
| folder when user logged on.
|
| 2. But Service Application is not able to read file from the mappe
drive
| folder when user logged off from the system.
|
|
|
| I want to know, how can I read file from mapped drive folder whe
user
| logged off from the system.
|
|
|
| Regards
|
| Vijay
|
|


-
rajaroydee
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top