Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM cannot change directory
Message
From
04/07/2001 05:39:11
 
 
To
04/07/2001 04:47:24
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00526607
Message ID:
00526618
Views:
14
Hi!

Where you call that COM DLL from? Remember that certain services, like WEB server, SQL Server and MTS work under another account logon on the machine. This logon could not have mapped logical drive 'Z', as well as could not have an access to the network at all. By default WEBs erver logons as special user on the machine. You require to add this user to the network domain to access network drives. Also, you will require to logon with that user separately and organize mapped drive for it. Giving access to the network for SQl Server or WEB server is too dangerous, because it requires VERY accurate access rights definition. Think about it more.

BTW, you can access network resources in VFP using UNC path: \\MACHINE\SHARENAME\Folder1\Folder2...\File.DBF, and get rid of the problem with mapping. Anyway, you require to give access rights to the network for user used to logon the system that calls your COM object.

HTH.

>Hi,
>In my code from a dll i have a
>cd z:
>command
>I retrieve an error message as "invalid path or filename"
>Also when i try this command
>use z:\test.dbf
>I recieve a "Access denied" error.
>
>But the path exist and when i write the code in vfp its runs without an error.
>
>My operating system is win2000 proffesional.
>The server is win2000 server.
>Thanks
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform