473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Unable to map drive in VS2005 over Vista

After migrating from XP to Vista, the following piece of code
Process.Start("subst", drive + " " + path);
as well as
DefineDosDevice(0, drive, path); // importing kernel32.dll
simply stopped mapping drives.

The funny thing is that running "subst [drive] [path]" from command
line performs this mapping.

Any Ideas?

Jul 25 '07 #1
2 1961
* it******@gmail.com wrote, On 25-7-2007 13:12:
After migrating from XP to Vista, the following piece of code
Process.Start("subst", drive + " " + path);
as well as
DefineDosDevice(0, drive, path); // importing kernel32.dll
simply stopped mapping drives.

The funny thing is that running "subst [drive] [path]" from command
line performs this mapping.

Any Ideas?
Could be UAC, try disabling it or run the application as an
administrator to see if that solves it.

Jesse
Jul 25 '07 #2
Running as administrator didn't solve it, but disabling UAC did.
Thanks.
However, I'd rather modify my own exe file than changing destination
platform.

Jesse Houwing :
* it******@gmail.com wrote, On 25-7-2007 13:12:
After migrating from XP to Vista, the following piece of code
Process.Start("subst", drive + " " + path);
as well as
DefineDosDevice(0, drive, path); // importing kernel32.dll
simply stopped mapping drives.

The funny thing is that running "subst [drive] [path]" from command
line performs this mapping.

Any Ideas?

Could be UAC, try disabling it or run the application as an
administrator to see if that solves it.

Jesse
Jul 30 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
0
by: androidsun | last post by:
I am getting an error message when launching VS2003. It says "MS Development Environment has not been installed for the current user. Please run setup to install the application." I used...
1
by: Torben Laursen | last post by:
Hi I have a website that I can debug just fine in VS2005 on WinXp. But when I move the website to a Vista computer and hit F5 inside VS2005 the website starts but I cannot debug it. I have...
2
by: nospam | last post by:
Hi, dont know if this is the correct group, but tried on vista.general and got no help. ive installed VS2005 on RC2 version of Vista and when i try to create a new website project it shows an...
5
by: guy | last post by:
http://blogs.msdn.com/ericnel/archive/2006/10/17/top-level-technologies-products-not-supported-on-windows-vista.aspx are MS really saying that they do not have a development enviropnment for...
24
by: Squishy | last post by:
I tried installing my VS2005 Pro on Vista Ultimate 32 bit RTM today and got errors stating that VS2005 was not compatible with Vista. Microsoft......please pull your finger out of my ass and tell...
8
by: Jim Hubbard | last post by:
(I know this is a great big newsgroup no-no, but I originally only posted to microsoft.public.dotnet.general and that newsgroup doesn't seem to have near the readership of these - so I thought I'd...
3
by: Bishop | last post by:
So what is the best version of Vista to use with VS2005?
6
by: John Kotuby | last post by:
Hi all... Well my earlier post aboout not being able to access http://localhost has been resolved. I am still having problems testing my Web site project. First, thanks to Juan Libre I edited...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.