Home · Compatibility Lists · Support Forums · FAQ · News Archive · Articles · Submit News/Upcoming News
NT Compatible
advertisement


Forum overview » Networking » Windows Service (using SRVANY) is not able to acces network drive (1/1)

Reply New Poll

Windows Service (using SRVANY) is not able to acces network drive
Author Message
ron_bakker00
Junior Member


Posts: 1
Joined: 2006-01-24
Member No.: 77447
Icon 2006-01-24 20:40:06

Hey,

I made a simple C program to write a file on a mapped network drive (which is in fact a local directory which I shared and mapped to S . When I run this program as a user it is able to create a file ( as expected ). When I install the program as a service using srvinst.exe and srvany.exe it is no longer able to write on the mapped drive. When I try to write on the C: drive there is no problem. I tried several option to run the service with the administrator account but none was succesfull.
Does someone have a suggestion? Or an example how to write a windows service (using VC6.0) to avoid using srvany

Ron Bakker

Post #170142
Edit Quote Print Solution Plonk Delete
pcaviness
Junior Member


Posts: 1
Joined: 2006-01-27
Member No.: 77557
Icon 2006-01-27 22:20:30

Windows 2000 and above creates a set of drive letters for each user. Services are not able to access these drives, unless a service running as local system maps the drive. Don't ask me, as Microsoft. The way we got around this issue was by using UNC paths (\\machine name\path). Another way is to create a service that maps your drives, must run as local system, or map the drive in your program. If you are using Microsoft Services for unix or MKS, you can mount the drive by typing mount <\\machine\path> <drive letter>.

Good Luck

Post #170230
Edit Quote Print Solution Plonk Delete

Related Threads RSS


Related Compatibility RSS Vendor Rating Entries First Post Last Post
Microsoft Windows XP Service Pack 3 Microsoft Corporation ***** 97 2007-12-14 08:35:28 2010-05-09 10:23:22
Microsoft Security Essentials for Windows XP Microsoft **** 1 2010-04-23 10:55:17 2010-04-23 10:55:17
Windows XP Prefetch Clean And Control Jester2K Software ***** 25 2007-06-11 06:41:48 2010-04-21 08:15:56
Wing Commander 4 Windows 95 Update (Origin) Origin ***** 6 2003-02-01 12:00:00 2010-04-18 10:20:41
Protector Plus - Windows Vulnerability Scanner Proland Software *** 1 2010-04-18 10:19:23 2010-04-18 10:19:23
ATI Catalyst for Vista & Windows 7 ATI Technologies ***** 10 2009-04-29 09:38:12 2010-04-15 09:01:28
Intel Graphics Media Accelerator Driver for Windows XP Intel Corp. ***** 22 2009-06-10 09:32:43 2010-04-11 10:08:33
ATI Catalyst Drivers for Windows XP ATI Technologies Inc. ***** 106 2009-01-14 19:08:01 2010-04-05 09:54:46
Intel Network Adapter Driver for Windows 7\2008 Intel Corp. ***** 2 2009-11-06 00:26:22 2010-03-21 10:48:26
Windows XP Service Pack 2 Support Tools Microsoft ***** 5 2008-06-17 10:20:30 2010-03-13 10:58:12

Reply New Poll

Forum overview » Networking » Windows Service (using SRVANY) is not able to acces network drive

Legend
View   View profile
Solved   Mark this post as solution (topic starter only)
Quote   Reply with quote to post
Edit   Edit post
Delete   Delete post (admin only)

Moderator: Open / Close / Bump / Delete / Move / Merge

All products mentioned are registered trademarks or trademarks of their respective owners.
© 1998-2009 Esselbach Internet Solutions - All Rights Reserved. Terms and privacy policy
Website powered by Esselbach Storyteller CMS System