Re: Run app located in network share from command prompt... by Synapse
Synapse
Fri May 09 02:25:21 PDT 2008
"chaitu" <chaitanyagsk@gmail.com> wrote in message
news:4e88a1f0-b437-459e-aa11-f571da626554@p39g2000prm.googlegroups.com...
> Its working perfectly. What is the difference in the way i mapped to
> a network drive using 'Map Network Drive' option from explorer and Net
> Use command?
>
> Also, i have a problem related to this. I have an installation package
> which can be installed from a network drive. Once installation package
> is launched, it should know from which drive its launched. For this, i
> am using GetCommandLine() MFC function. Problem is, suppose,
> installation package say setup.exe is located in Z:(network location).
> When setup.exe is launched with standard user privileges, then
> GetCommandLine() is returning Z:\setup.exe. But when setup.exe is
> launched with admin privileges, it's returning with UNC path i.e.
> <UNCPath>\setup.exe
>
> Now i checked the above behaviour by mapping network drive using
> Net Use command. In this case, even when setup.exe is launched with
> admin privileges, GetCommandLine() is returning Z:\setup.exe which i
> want.
>
> I cant tell the user to map to a network drive using Net Use
> command. He maps using 'Connect to a network drive' option available
> in the explorer. Can we achieve the same behaviour with this option?
I gave up on Vista last August precisely because of all this stupidity. I
use my Vista Ultimate licence on a HTPC, as Media Centre is pretty good on
it, but there is nothing else in Vista that is particularly useful. Instead
of this UAC crap, I just use RUNAS for everything, from a Power User
account, with XP.
I cannot check right now, but is it possible to right click the Explorer
icon, and run as Admin?
ss.