Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Joe72
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 11
Join Date: Apr 2004
Default Executing file from flash-card immediately after booting..?

Hey people on the board!

I'm a relative newbie in this PDA-stuff so I have a question which perhaps (hopefully) is easy to answer. Problem:

I have an application which I run on my Qtek 1010. The application runs fine, but prior to using it, a significant amount of time must be spent on installing and configuring it. In case of battery-faliure, this needs to be done from scratch. I would therefore like the Qtek to execute a script-like file (autorun.exe) which performs this task, immediately after booting.. The file is present on a flash-card inserted in the slot. How do I do this? Where - on the card - do I place the file? In the root? And how do I detect it and run it automatically after a cold-boot?

Any help would be greatly appreciated! Thx!

/Joe72
 
cimber
Old
#2  
Senior Member
Thanks Meter 1
Posts: 120
Join Date: Apr 2004
Location: Munich
Default Its quite simple

Hi there, your problem to fix is quite easy.
If you look in in your windows directory with the built-in explorer, you'll find a directory - either "startUp" or "Autostart" depends on the system language you are using. Here you put a link to the program you're having on card. With every cold- or warm boot it will be executed. :lol:
regards
cimber
See http://pda.cimber.de and you'll find a lot of information around the HTC Touch2 (Mega)
 
cruisin-thru
Old
#3  
cruisin-thru's Avatar
Senior Member
Thanks Meter 13
Posts: 2,750
Join Date: Jul 2003
Location: Gloucestershire England.
On the memory card make a directory named 2577, I believe the pocket pc will look here for your autostart on boot, try it and see. You can try putting a cab file in there or your autostart config file. I am not an expert in this but thats how its done with ipaq navigation system which is an automatic routine using the 2577 directory and I have also seen other software using the same method.
 
itsme
Old
#4  
Developer / Recognized Developer
Thanks Meter 2
Posts: 652
Join Date: Mar 2003
Location: delft 52'00N 4'22E
the file should be called 'autorun.exe' in the '\storage card\2577\' directory.

when you insert the card, the autorun.exe will be copied to \windows, and executed with 'install' as parameter.
when you remove the card, it will get executed with 'uninstall' as parameter.
and then removed from \windows.

but this will not nescesarily happen at boot.


just figured out another thing: the number you put in the .lnk file in \windows\startup is completely ignored by windows.
also, if the executable is in \windows, you may omit the path,
you may also omit the extension if it is .exe.

if you specify commandline parameters, your application will get passed upto 255 characters starting from the first non-whitespace character after the executable name.and including any newlines that may be in the file.
 
Joe72
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 11
Join Date: Apr 2004
Hi!

Thanks for the response. I'll give the methods a try during the day and get back.

Thanks so far - I appreciate it

/Joe72
 
Joe72
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 11
Join Date: Apr 2004
Hi there (again)!

I have tried the different suggestions with no luck. Perhaps I should have been a bit more specific. What I actually need is to have the autorun.exe run (install) a number of cab-files also on the flash-card. I was - perhaps naively - thinking that there would be a generic tool out there to create this type of autorun.exe file? I am looking for something along the lines of what is being done here:

http://forum.xda-developers.com/view...hlight=autorun

Only, in the case above, the autorun.exe lauches a specific .cab-file which contains a ROM for the PDA.

Is there a "configurable" .cab-installing autorun.exe out there somewhere? Or should it be written from scratch every time for new purposes?

Hope I make myself clear

/Joe72
 
itsme
Old
#7  
Developer / Recognized Developer
Thanks Meter 2
Posts: 652
Join Date: Mar 2003
Location: delft 52'00N 4'22E
yes, it is in the extended rom, processing the config.txt file.

eeeh, but the location of the config.txt is taken from the registry, which is currently always set to \extended_rom\config.txt.
 
Joe72
Old
#8  
Junior Member - OP
Thanks Meter 0
Posts: 11
Join Date: Apr 2004
Quote:
Originally Posted by itsme
yes, it is in the extended rom, processing the config.txt file.

eeeh, but the location of the config.txt is taken from the registry, which is currently always set to \extended_rom\config.txt.
Could you explain that to me in more detail, please? As I mentioned, I am a relative newcomer in this Xda stuff Thanks..

/Joe72
 
itsme
Old
#9  
Developer / Recognized Developer
Thanks Meter 2
Posts: 652
Join Date: Mar 2003
Location: delft 52'00N 4'22E
what you are asking for is the autorun.exe found in the extended rom,
look for 'extended rom batch language' on the forum for details.

problem is that the autorun.exe from the extended rom uses the config.txt
pointed to by the "[HKEY_LOCAL_MACHINE\Comm] AutoRunCfg" registry value. which always is '\Extended_ROM\Config.txt"

what you could do, is change the 'autoruncfg' string in the autorun.exe binary in to something else. and then fill your own config.txt path in that registry value.
 
Joe72
Old
#10  
Junior Member - OP
Thanks Meter 0
Posts: 11
Join Date: Apr 2004
Thanks - that sounds like the way to do it. I guess I would copy the original config.txt, add my .cab-files, put it on the flash-card and then change the key in the registry to point to the card. Is that how it would go?

Now another stupid question: How do I access the registry? There is apparently no regedit.exe like on my desktop?

/Joe72

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Go to top of page...

XDA PORTAL POSTS

Profile Flow: A Tasker Alternative

By now, we’re all quite familiar with Tasker, the personal automation app that seems to be able to … more

More Tips to Help Promote Your Android App

With over 700,000 apps in the Google Play store and more than 48 billion app installs, it’s … more

Sony Continues AOSP Initiative on the Tablet Z

Sometimes, you can harp on a subject so much that you end upbeating a dead horse. In our eyes, … more