Re: Mapped Drives and VB6 on Vista



"Richard J" <RichardJ@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ECB4C84D-953F-4AD5-AB5A-6E6E2C9D8515@xxxxxxxxxxxxxxxx
Hello team and happy new year.

I'm still working on the evaluation of Vista using our current development
environment. I have everything installed now, running the setup.exe files
as
administrator where possible.

I right-clicked on the VB6 shortcut and changed the Privilege Level to run
as administrator. Of course, I get the "a program wants access to your
computer" dialog and have to allow a Microsoft product to run on a
Microsoft
operating system (which I think is wierd).

I have shared a local folder and mapped it as my Y:\ drive; it's something
that is required for our software. I have given the administrator account
full control over the shared folder; this is also the account that I am
logged into.

I can open one of my projects up in VB6 with no errors. However, when I
run
the project, I get an error stating that it could not find a file on the
Y:\
drive. Here's a more in depth flow of what is happeneing:
- the program starts and reads an INI file on the local C:\ in a project
folder.
- if the results from the INI specify it, then we look in a Y:\ drive
folder
for another file that contains environment type variables.
- the code attempts to use the OpenFile API to determine if the file in
the
Y:\ drive folder exists.

This doesn't occur on my Windows XP machine which makes me wonder whether
I
have something on the permissions incorrect.

I can look in Windows Explorer and see the drive and see the file. The
app
calls on the OpenFile API to determine if the file in question exists or
not.

Is the problem with Vista? VB6? the API call? Or am I still missing
something with the whole folder sharing thing?

Thanks for any insight.
Richard

Solution: Log-on as Administrator and map the drive -as- the Admin. Then
when you log back in under your regular ID, it will work. Apparently this
is a -feature- not a bug. I've encountered this problem with installation
software on Vista. Makes for a nightmare with end-users.


.



Relevant Pages

  • RE: Vista "complaints"
    ... Recent misconceptions about Vista and UAC posted to the Focus-Apple group, ... administrator, and combined with the many configuration options Vista ... run an installation file need to do so in admin mode. ... that Win XP gave her the ability to add permissions to her normal ...
    (Focus-Microsoft)
  • Re: Update for Internet Explorer 7 in Windows Vista (KB933566)
    ... Contact administrateor' However I AM the administrator! ... When the download completes close IE7 and any other open programs. ... Cumulative Security Update for Internet Explorer 7 in Windows Vista ... Installation status: Failed ...
    (microsoft.public.windowsupdate)
  • RE: [PHP] "cannot load mysql extension" - PHP Installation on Vista/Apache
    ... Installation on Vista/Apache ... Vista intriguing and a learning experience. ... You right i "miss-worded" that (if you do search further the reason it works ... same permissions as the original folder'. ...
    (php.general)
  • Re: Users all mixed up after reinstall: How to clean up?
    ... It appears that your original installation was an upgrade from Windows 98. ... That's why you have a Windows system folder and all the new users had some sort ... log on as Administrator then go to Control Panel> Users ...
    (microsoft.public.win2000.general)
  • Re: Can not create a new file with File.Create -- throws exception: Access Denied
    ... difficult to do this right now (and I'm really suspecting Vista). ... It will be a general logging location. ... Keep in mind that "administrator" is just ... The sFileStoreLocation is pointing to a new folder that I created, ...
    (microsoft.public.dotnet.languages.csharp)