DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 23 Jul 2007 06:02:44 -0700,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    Buthrakaur
          2    Christian Resma Helle


autorun from SD card - how to determine the original autorun directory   
Hello, I'm trying to develop an autorun application, which will
perform some actions (copy files, install cabs, setup registry etc)
described in XML file located in the same directory as the autorun.exe
file. The problem is that I'm not able to get path the autorun
application on storage card using something like
Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName -
this returns \Windows\Autorun. It seems that  the OS copies the
autorun.exe file to internal memory and then executes it, but then I'm
not able to find out easily where the original autorun.exe file is
located. Is there any better method than searching the storage card
for the original autorun? I tried to search this group, but didn't
found anything dealing with this problem....
Date:Mon, 23 Jul 2007 06:02:44 -0700   Author:  

Re: autorun from SD card - how to determine the original autorun directory   
Try P/Invoking SHGetAutoRunPath() from aygshell.dll

Here's a link to the MSDN Documentation for SHGetAutoRunPath:
http://msdn2.microsoft.com/en-us/library/aa932541.aspx

-- 
Regards,
Christian Resma Helle
http://christian-helle.blogspot.com


"Buthrakaur"  wrote in message 
news:1185195764.000812.300570@n2g2000hse.googlegroups.com...

> Hello, I'm trying to develop an autorun application, which will
> perform some actions (copy files, install cabs, setup registry etc)
> described in XML file located in the same directory as the autorun.exe
> file. The problem is that I'm not able to get path the autorun
> application on storage card using something like
> Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName -
> this returns \Windows\Autorun. It seems that  the OS copies the
> autorun.exe file to internal memory and then executes it, but then I'm
> not able to find out easily where the original autorun.exe file is
> located. Is there any better method than searching the storage card
> for the original autorun? I tried to search this group, but didn't
> found anything dealing with this problem....
> 
Date:Mon, 23 Jul 2007 16:35:34 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us