PC Review


Reply
Thread Tools Rate Thread

autorun from SD card - how to determine the original autorun directory

 
 
Buthrakaur
Guest
Posts: n/a
 
      23rd Jul 2007
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....

 
Reply With Quote
 
 
 
 
Christian Resma Helle
Guest
Posts: n/a
 
      23rd Jul 2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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....
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
determine autorun apps and how to stop them Tom_Freeman Windows XP Basics 13 26th Nov 2006 10:21 PM
determine autorun apps and how to stop them Tom_Freeman Windows XP Help 13 26th Nov 2006 10:21 PM
RE: 'Autorun' when inserting an SD card =?Utf-8?B?UGV0ZXIgRG9ycmVu?= Microsoft Dot NET Compact Framework 0 30th Apr 2004 07:51 AM
Re: 'Autorun' when inserting an SD card Alex Feinman [MVP] Microsoft Dot NET Compact Framework 5 27th Apr 2004 11:46 PM
Autorun from storage card Tuti Microsoft Dot NET Compact Framework 1 17th Oct 2003 04:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:50 AM.