A tutor to write simple 'batch' script (cab)? - Windows Mobile Development and Hacking General

Hello,
I am going to write a simple script, which I am going to launch on my smartphone. This script will do some easy operations:
- copy some files from card to phone (even with 'hidden' attribute)
- modify some keys/variables in registry
- add spme keys/variables into registry
Would you tell me please where I can find a tutor to make such cab files?
Thanks in advance
best greetings!
RA

Mortscript

Looks nice, but...
joemanb said:
Mortscript
Click to expand...
Click to collapse
Thanks for your answer! But please tell me, is it the tool with they make all 'cab' files with '_setup.xml' inside? How they do such cab-s?
RA

Related

New Soft! ConfigCreator & Restorator

Wazzzzzzzzaaa???
This is my first C# util!
It facilitates ExtRom update process. All you need to do is to put your cab files to Ext and run this utility, then the utility will create Config.txt at Ext with all cabs specified as "CAB: path2cab". If you need to get your original Config, then check ConfigOld at Ext
C# Programmers let's unite!!! ))
ps: the utility is not verbose one, so you won't see any messages & lame stuff. If you see something, then there is a problem
that's good boy! will try it l8r..
THANKS!
Man, wher z feedback?? Did u try it?
Yo,
boobee said:
that's good boy! will try it l8r..
THANKS!
Click to expand...
Click to collapse
Boy, hope you finaally tried it! And try this one also. This is my 2nd C# util
Shortly what it does:
UnZips your files with consecutive registry values (reg V4) import and splash writing
It means that you can zip all your files to one file called Setup.zip and place it anywhere (storage/ext). After hard reset, the utility is called and it extracts all your files and restores your favorite registry settings (saved to Setup.reg) and writes your splash.
btw: read za manual !
ps: the concept is the same, if u see somethin' then there is a trouble
Re: Man, wher z feedback?? Did u try it?
Attention!
The file was re-uploaded, so there mustn't be any CRC errors now
System Requirements
Regarding system requirements, the program needs old version of ER\Autorun.exe that understands ER\Config.txt
Program was not tested on XDA1! It was partially tested (w/o hard-resets on XDA2 / 1.72TM
Version 1.1
Wazzza!
Here is a new version of Restorator utility. The new features are:
+ now it deletes content of \My Documents;\Windows\Start Menu;\Windows\Startup folders (as people wanted
+ TimeZone offset is not resetted anymore
Note:
Make sure you have prepared your customized Start Menu (!!!) and Startup (!!!) folders, otherwise you won't be able to see Programs after hard-resetting your device. Please, check the attached sample to prevent yourself from having problems with this utility or use version 1.0 that don't delete anything
Umm... could anyone translate this into English for me?
I don't even understand the title of the thread.
In another thread, SP says that one of these downloads will retrieve data back on hard resets. Sounds like a useful tool, if only I understood what the hell these posts mean. :lol:
For Ben
sublimatica said:
Umm... could anyone translate this into English for me?
Click to expand...
Click to collapse
Here we go...
(assuming that you downloaded 'RestoreItV1_1_PPC.ARMV4.CAB' & installed it to your device)
This program is designed to restore your files, folders and registry settings from a ZIP-format archive and it can also write some splash screens
For this purpose, you need to make a ZIP-format archive with files & folders you want to get restored after hard-reset. Just run your favorite pocket zip archiver (for instance PocketRAR) and archive those files & folders that you want to see after hard-resetting device. Name your archive "Setup.zip" and place it to one of the following places: storage, storage card or extended rom.
Before doing further instruction make sure you have unlocked your ExtendedROM using ExtUnlocker.
If your rom is unlocked try to run the utility from \Storage\RestoreIt. If you had no messages after running it, then the utility installed itself successively. And your files & folders placed to 'Setup.zip' will be restored on next hard-resets.
If you're interested in restoring registry settings, then you need to get pocket registry editors that support exporting/saving to .reg files. After saving your favorite registry settings you will need to combine them to one .reg file and name it 'Setup.reg'. Then, you will need to place it to your archive's root folder (aka '\') So, you will have a file 'Setup.reg' placed to the root folder of your 'Setup.zip'. That's all folks
I strongly recommend you to see sample 'setup.zip' & 'manual.txt'
DON'T FORGET TO PUT YOUR CURRENT '\WINDOWS\STARTUP' & '\WINDOWS\START MENU' FOLDERS TO YOUR SETUP.ZIP!!!
You're welcome to ask me questions anytime!
Aaah, OK. That makes more sense
Sounds like a handy little tool then. Might have a play later.
Thanks, SP!
RAR-support
Is there anyone who is interested in rar-support for restorator?
Attention: Restorator v1.0 & 1.1
Attention: Restorator v1.0 & 1.1 are originally supported by I-Mate 1.72! All you need to do here is to use Extended ROM unlocker prior to running the utility
Feedback
Any feedback so far?
SP,
Restorator seems like a winner!!! I have been hitting my head on the rocks for a while trying to script a recovery using nscriptm as a scripting tool to call cab files which I keep on a storage card. Looks like using your tool a lot of the tedious scripting can be simplified by simply copying the files where they need to go. The challenge is knowing exactly what to copy & where... Is it possible to add the ability to call CAB files to your already excellent utility?
I am imagining putting all the CAB files in say a folder like \CABs in the Setup.zip and then having Restorator calling them one by one after finishing off with all else that it does. Can this be done? Additionally can you add ability to call registry imports at two points? You may wish to call registry import at the beginning and once more at the end after all cab file execution has been completed. This would be useful to restore application settings etc which the cab execution would overwrite to default. You would obviously need to keep two .reg files in the zip file. Does this make sense?
Thanks once again for all your efforts. Regards
Hi Mate
k_kirk said:
SP,
Thanks once again for all your efforts. Regards
Click to expand...
Click to collapse
Thanks for your motivating feedback.
I'm planning to put your features in 3 to 5 days...(hope to get some free time on these days).
And more ideas and recommendations are welcome!!!
SP
SP, thanks for continuing to work on this utility. I am waiting eagerly for your next update. I will set it up and test it with a hard reset so we can see real outcome. Let me know when ready please. Thanks
Re: Hi Mate
SP said:
k_kirk said:
SP,
Thanks once again for all your efforts. Regards
Click to expand...
Click to collapse
Thanks for your motivating feedback.
I'm planning to put your features in 3 to 5 days...(hope to get some free time on these days).
And more ideas and recommendations are welcome!!!
SP
Click to expand...
Click to collapse
Hi SP, this utility sounds great. Does it work with the XDA I as well????
Re: Hi Mate
Hi SP, this utility sounds great. Does it work with the XDA I as well????
Click to expand...
Click to collapse
Unfortunately I don't have an XDA 1 device at my disposal and I'm unfamiliar with its tech info.
What happens when your xda1 is hard resetted? Does it install cab files? or does it run any configuration software?
If there is a such software (on XDA2 it is autorun.exe placed at ExtendedROM), then you must specify in the runner (which starts on hard-resets) the call to the restorator utility
Looking forward to assist you in porting restorator for XDA1 devices
Cheers
Hi SP. Just dropping by. Any news on new version of Restorator? Cheers.
Restorator V1.2
k_kirk said:
Hi SP. Just dropping by. Any news on new version of Restorator? Cheers.
Click to expand...
Click to collapse
Sorry for the delay...
I'm having lack of time now, thus I couldn't test it very well . Just let me know if you found some bugs...
Now you can create "\CABS" folder and place your cabs there. They will be processed after extraction and before registry import. So, you don't need to have two .reg files then.
I'm looking forward to your new ideas!
ps: another attachment is a set of registry settings splitted by .reg files. I'm using them to get my setup.reg. Just change what you need, delete some of them and run "make.bat". It will create setup.reg with all your settings.
btw, check out "Usher_-_Yeah_[44k].wma" & "Maroon5_-_This_Love_[64k].wma". Home-made ringtones ;-)))
for those who hadn't used Restorator before. !!! DON'T FORGET TO PUT YOUR "START MENU" & "STARTUP" FOLDERS TO THE SETUP.ZIP !!! AND READ DA MANUAL!!!
Cheers
SP,
I tried the Restore-It utility today and found that the earlier functionality of copying files & importing registry etc from setup.zip works quite well.
The \CABS folder was also restored onto my device so I guess thats an indication that my setup.zip file was contructed properly. I am sad to report that none of my cab files were triggered by Restore-It though. I think there is a small bug thats holding back this behaviour.
Your kind assistance to check & correct this will be most appreciated.
Thanks & Best Regards

How to make .cab

Hi, frens can tell me the way how to make .cab file? I mean we compact all the files and then we want put the files into certain locations in our ppc..what is the soft that we need? Thanks
if you want a program that creates/manages cab files try this: http://www.ocpsoftware.com/products.php?nm=cecabmgr
Thanks but its so expensive for me Can anyone of you create such software? I'm sure there must be people in here who knows how to make the software..please make it..just a simple one..thanks
Microsoft gives you this:
http://support.microsoft.com/kb/310618
You'll want WinCE CAB Manager, regardless of price.
LoTekJunky said:
Microsoft gives you this:
http://support.microsoft.com/kb/310618
You'll want WinCE CAB Manager, regardless of price.
Click to expand...
Click to collapse
Thanks for the info bro

can someone make a cab file for me??? please

can someone please make a cab file from this dll file??
thanks a lot.
where do you want it placing ? in the windows directory?
it would be just as easy to copy it there! let me know i will try to make it for you!
i dont see the point in doin it tho
idrisito said:
where do you want it placing ? in the windows directory?
it would be just as easy to copy it there! let me know i will try to make it for you!
i dont see the point in doin it tho
Click to expand...
Click to collapse
i can't copy the file.
it doés not work here.
Merry Christmas.
I have also attached QuickCab 1.0 - You can use this to create your own .cabs in future. Just use QuickCab.exe. It is an easy to use GUI and wizard.
Also included in the QuickCab 1.0.zip that might be of interest to you is MSCEInfen.exe - This file is used to decompress .cab files to their original formats.

mortscripts tut???

i have heard lots of about mortscripts use,,
but plz can someone elaborate how??
like how can i add new taskbar icons??
how to create flder?
and finally where the hell to put it??
sorry..
if someone already know then plz give the link..
hi, mortscript is a scripting language
you can build a file with extension .mscr and when you double click it instructions will be executed. you can do anything with mortscript: write/read to registry/files, run programs, send commands to the operating systems, send events to the queue...
mortscript is a simple language so you can be up and running in little time. there is no GUI so it is a language very descriptive.
the program can be downloaded at the author's page. There is a complete and concise pdf manual.
in xda there is are two reference threads: mortscript examples acumulation and mortscript source compendium.
rather than ask for that or that code, learn by doing...the machine will do what you want to.
cruiserrr said:
hi, mortscript is a scripting language
you can build a file with extension .mscr and when you double click it instructions will be executed. You can do anything with mortscript: Write/read to registry/files, run programs, send commands to the operating systems, send events to the queue...
Mortscript is a simple language so you can be up and running in little time. There is no gui so it is a language very descriptive.
The program can be downloaded at the author's page. There is a complete and concise pdf manual.
In xda there is are two reference threads: Mortscript examples acumulation and mortscript source compendium.
Rather than ask for that or that code, learn by doing...the machine will do what you want to.
Click to expand...
Click to collapse
can i cook them??
Like wher i have to put them to execute???ext folder??shared folder or in folder with mname zzzz
Here's a mortscript package. Just put it in your EXT directory. As for the scripts themselves, do whatever you want. I use them during customization (unzipping; creating my start menu..), so you need to put the commands into an add2config.txt file. I also have a few that I use for backing up/restoring files, or exporting reg keys. I just have links to them in my start menu.
you can cook both the app (as says previous post) and the scripts you create or reuse. you can use scripts that build (or copy) the shortcuts at boot time or do anything you want. this is not a quick shot, I recommend you take some reading on mortscript, there is a lot here at xda.
thank u thank u all of u..
There is a WIKI with some examples too. See my Sig
RoryB said:
There is a WIKI with some examples too. See my Sig
Click to expand...
Click to collapse
and RoryB is another mortscript WIKI himself !!

[SOLVED]How to create a shortcut for mortscript

hello to all i have created a mortscript but i did not able to create a shortcut in startmenu with packages maker.....will anyone please help me how to create a shotcut with mortscript because packages maker only show the "exe" files.
thanks to all
1#"\Windows\Connections_OFF.mscr"
Like that. Just put in your script name, put it in a .txt file and change the extension to .lnk.
Total Commander is a great tool for making links.
Since you're using mortscript, you can also use the createshortcut command to make the shortcut, like this:
Code:
CreateShortCut("\Windows\Start Menu\Programs\MortScript\RestoreWeather.lnk","\Windows\RestoreWeather.mscr")
Farmer Ted said:
1#"\Windows\Connections_OFF.mscr"
Like that. Just put in your script name, put it in a .txt file and change the extension to .lnk.
Total Commander is a great tool for making links.
Since you're using mortscript, you can also use the createshortcut command to make the shortcut, like this:
CreateShortCut("\Windows\Start Menu\Programs\MortScript\RestoreWeather.lnk","\Windows\RestoreWeather.mscr")
Click to expand...
Click to collapse
thanks for ur reply when i add like this in my created script it does not create a shortcut
any solution??????
I didn't have the script in code tags, so it had a space in the second 'windows'; maybe that was the problem. It should work fine; my whole start menu (100+ shortcuts) is created that way. You just need to have the correct path to the script you want linked.
are i add these entries ina rgu or in my created script
They go in a mortscript; you also need to put an EXEC command into an add2config.txt file to get the script to run (and mortscript has to be cooked in).
Farmer Ted said:
They go in a mortscript; you also need to put an EXEC command into an add2config.txt file to get the script to run (and mortscript has to be cooked in).
Click to expand...
Click to collapse
Thanks once again ....i put m'y scripts into m'y Windows folder and i havé created a new note.txt and i add m'y entries like u havé marked and i rénamed thé txt to mscr but when i want to test thé script before cooking it gives a error ...i havé mortscript installed ...Will i add some thing Else in m'y script or ...is it possible to upload a sample script for creating shortcut?
Do the cheaters method, and find your file in the windows directory of your device, then select and copy, finally paste as shortcut in storage card. Move shortcut off storage card. Done.
indagroove said:
Do the cheaters method, and find your file in the windows directory of your device, then select and copy, finally paste as shortcut in storage card. Move shortcut off storage card. Done.
Click to expand...
Click to collapse
ok but i want to create a shortcut in my kitchen for cook with
shafizal said:
Thanks once again ....i put m'y scripts into m'y Windows folder and i havé created a new note.txt and i add m'y entries like u havé marked and i rénamed thé txt to mscr but when i want to test thé script before cooking it gives a error ...i havé mortscript installed ...Will i add some thing Else in m'y script or ...is it possible to upload a sample script for creating shortcut?
Click to expand...
Click to collapse
What's the error? I'm guessing there's just some syntax that's off. You should try each script one at a time (comment out all but one at a time with #'s).
Farmer Ted said:
What's the error? I'm guessing there's just some syntax that's off. You should try each script one at a time (comment out all but one at a time with #'s).
Click to expand...
Click to collapse
now its ok bro ur entries worked now and i added into config.text now its creates the shortcuts automatically after flash.....
thank u very much for ur help from begin..

Categories

Resources