Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 7th, 2005, 07:16 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I think besides an opinion, I *did* give you a solution:
Quote:
quote:Don't use a drive letter but a UNC path like \\SomeServer\SomeShare
A service account usually doesn't have mapped drives as those are stored in the user's profile.
Use a UNC path instead.

Imar
 
Old June 7th, 2005, 03:40 PM
Registered User
 
Join Date: Jun 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar,
It seems you are aware of how to use mapped drives or you wouldn't have mentioned it. A further reason for using a pathname instead of a UNC, as you call it, is because I need to use the Win32_Direcotory function and a subset there of Win32_ChangeSecurityPermission. Win32_Directory requires that I supply it with a pathname e.g. "C:\Users\User1". I have tried using a UNC but to no avail.
Please advise.
 
Old June 7th, 2005, 05:00 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It's the other way around. I mentioned UNC paths because I know mapped drives cause problems.

The only way that *might* work is to log in with the account you're running the service under. Then map the drives for that account, log ou and configure the service to run under that account.

Not sure if that works because I don't know if the service "logs on" when it runs, so I don't know if the drives become available.

Other than that I am out of ideas. Sorry. I have always used UNC paths.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Including an .ocx dartcoach VB How-To 9 November 13th, 2006 01:37 PM
NTSVC.OCX app and Windows 2000 felixs Pro VB 6 10 November 10th, 2004 05:08 AM
Use Ocx saulodet ADO.NET 0 January 5th, 2004 01:32 PM
NTSVC.OCX and Error = 91 skhan22 Pro VB 6 3 October 24th, 2003 01:18 AM
MSFLXGRD.OCX and MSDATGRD.OCX Clive Astley Access 1 July 25th, 2003 08:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.