Hello,

Is there any "autorun" mechanism when inserting a SD Card ?

I would like to launch an application when a card is
inserted in the Pocket pc ...

Any information about that ?

thanks,

PJ

Re: "Autorun" when inserting SD card by Adam

Adam
Fri Jan 23 10:49:08 CST 2004

create an autorun.inf file with the following syntax:
[AutoRun]
open=program.exe

Simply replace program.exe with the file/program you want to autorun. Place
this autorun.inf file in the root of the sd card.

"Paul J." <anonymous@discussions.microsoft.com> wrote in message
news:2a4b01c3e1ca$1b1329f0$a301280a@phx.gbl...
> Hello,
>
> Is there any "autorun" mechanism when inserting a SD Card ?
>
> I would like to launch an application when a card is
> inserted in the Pocket pc ...
>
> Any information about that ?
>
> thanks,
>
> PJ



Re: "Autorun" when inserting SD card by Peter

Peter
Fri Jan 23 11:48:41 CST 2004

It can be done by placing an exe called Autorun in a processor specific
folder on the card - e.g. 2577 for ARM based devices. It is probably not
advisable to write this application in .NETCF in case the card is inserted
in a device without the framework present as it will result in an error.
http://www.pocketpcdn.com/articles/autorun.html

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

"Paul J." <anonymous@discussions.microsoft.com> wrote in message
news:2a4b01c3e1ca$1b1329f0$a301280a@phx.gbl...
> Hello,
>
> Is there any "autorun" mechanism when inserting a SD Card ?
>
> I would like to launch an application when a card is
> inserted in the Pocket pc ...
>
> Any information about that ?
>
> thanks,
>
> PJ



Re: "Autorun" when inserting SD card by Alex

Alex
Fri Jan 23 11:52:59 CST 2004

The OS will automatically execute autorun.exe located in a directory named
with am integer value of the current processor architecture. In case of
ARM-based Pocket PC it will be \Storage Card\2577\Autorun.exe

This works for all types of storage cards - SD, CF, PCMCIA

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/guide_ppc/htm/programming_pocket_pc_2002_balr.asp



"Paul J." <anonymous@discussions.microsoft.com> wrote in message
news:2a4b01c3e1ca$1b1329f0$a301280a@phx.gbl...
> Hello,
>
> Is there any "autorun" mechanism when inserting a SD Card ?
>
> I would like to launch an application when a card is
> inserted in the Pocket pc ...
>
> Any information about that ?
>
> thanks,
>
> PJ



Re: "Autorun" when inserting SD card by Chris

Chris
Fri Jan 23 11:55:04 CST 2004

You should be able to use th '\0' directory as well, which is for all
processors.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


"Peter Foot [MVP]" <feedback@nospam-inthehand.com> wrote in message
news:ezUhjkd4DHA.2404@TK2MSFTNGP10.phx.gbl...
> It can be done by placing an exe called Autorun in a processor specific
> folder on the card - e.g. 2577 for ARM based devices. It is probably not
> advisable to write this application in .NETCF in case the card is inserted
> in a device without the framework present as it will result in an error.
> http://www.pocketpcdn.com/articles/autorun.html
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> OpenNETCF.org Senior Advisor
> www.inthehand.com | www.opennetcf.org
>
> "Paul J." <anonymous@discussions.microsoft.com> wrote in message
> news:2a4b01c3e1ca$1b1329f0$a301280a@phx.gbl...
> > Hello,
> >
> > Is there any "autorun" mechanism when inserting a SD Card ?
> >
> > I would like to launch an application when a card is
> > inserted in the Pocket pc ...
> >
> > Any information about that ?
> >
> > thanks,
> >
> > PJ
>
>



Re: "Autorun" when inserting SD card by Paul

Paul
Mon Jan 26 08:11:15 CST 2004

Thanks a lot everybody ...
It works with PPC2003 Ipaq 1930.
One thing : It does not work with a directory named "2410"
which is the CPU type, but 2577.

I does not seem to work with autorun.inf ...

Thanks,
Paul J.

>-----Original Message-----
>create an autorun.inf file with the following syntax:
>[AutoRun]
>open=program.exe
>
>Simply replace program.exe with the file/program you want
to autorun. Place
>this autorun.inf file in the root of the sd card.
>
>"Paul J." <anonymous@discussions.microsoft.com> wrote in
message
>news:2a4b01c3e1ca$1b1329f0$a301280a@phx.gbl...
>> Hello,
>>
>> Is there any "autorun" mechanism when inserting a SD
Card ?
>>
>> I would like to launch an application when a card is
>> inserted in the Pocket pc ...
>>
>> Any information about that ?
>>
>> thanks,
>>
>> PJ
>
>
>.
>

Re: "Autorun" when inserting SD card by Alex

Alex
Mon Jan 26 12:19:42 CST 2004

IPaq has an ARM CPU, which is 2577

"Paul J." <anonymous@discussions.microsoft.com> wrote in message
news:492e01c3e416$42b02780$a601280a@phx.gbl...
> Thanks a lot everybody ...
> It works with PPC2003 Ipaq 1930.
> One thing : It does not work with a directory named "2410"
> which is the CPU type, but 2577.
>
> I does not seem to work with autorun.inf ...
>
> Thanks,
> Paul J.
>
> >-----Original Message-----
> >create an autorun.inf file with the following syntax:
> >[AutoRun]
> >open=program.exe
> >
> >Simply replace program.exe with the file/program you want
> to autorun. Place
> >this autorun.inf file in the root of the sd card.
> >
> >"Paul J." <anonymous@discussions.microsoft.com> wrote in
> message
> >news:2a4b01c3e1ca$1b1329f0$a301280a@phx.gbl...
> >> Hello,
> >>
> >> Is there any "autorun" mechanism when inserting a SD
> Card ?
> >>
> >> I would like to launch an application when a card is
> >> inserted in the Pocket pc ...
> >>
> >> Any information about that ?
> >>
> >> thanks,
> >>
> >> PJ
> >
> >
> >.
> >