Batch files for my HTC Touch? - Touch CDMA Windows Mobile ROM Development

Hey all,
Does Windows Mobile support batch files of any type? I tried making a simple .bat file and it wouldnt run.
I want to write a batch file to copy my pim.vol file over to my storage card. I just lost all of my contacts... and want to make sure I always have a backup of that file!
Thanks,
Livens

Gooogle MortScript. Install it and it supports all types of commandfile type processes.

VZYGuy said:
Gooogle MortScript. Install it and it supports all types of commandfile type processes.
Click to expand...
Click to collapse
Thanks, Ill give it a try.

Related

Delete File in Windows Mobile 6

Hi, how can I delete a file in \Windows folder? it seems complaining that the file is in ROM, I had tried many way even using other File Explorer or via ActiveSync. None of them work.
How can I delete a file in \Windows folder in my Microsoft Windows Mobile 6?
Maybe Resco Explorer or Total Commander CE will help.
if it's built in the rom, you might be unable to delete that file.
Please be more specific: which file do you wish to delete?
Maybe you'd have to recook the ROM without that file.
Regards,
EquinoXe
Things built into the rom are "READ ONLY MEMORY" therefore cannot be deleted. if the file is only marked as system and readonly though you can change its atributes using total commander. just long click on item to bring up menu and go to properties. there you need to uncheck everything and delete
I had downloaded Total Commander and installed it, the checked file attributes are 'read only' and 'in rom'; so I guess the file shall be consider undeleteable.
Now I had to learn how to recook, any good guide how can I recook the ROM that I have?
similar problem
I downloaded some software and it came up as being faulty software. The file was a zip folder titled : res_ppc-custom.icons
I tried through my windows mobile device center to uninstall it, but it was never actually installed completely in the first place.
I then tried to delete the file a few times. Once directly from my pda, once through the device center and again through my pc windows explorer. All three attempts were unsuccessful.
How can I get rid of this thing?
Thanks in advance
perhaps you may want to check if the file being accessed by other software, easiest way is to soft reset and try to delete it.
That did the trick! Thanks so much
Move files to storage card
OK I want to move some files (not ROM) in Windows and keep getting error. For example Opera.exe is not marked as anything in properties yet I can't seem to delete the file. I did copy it to my storage card without any issue but can't delete the original from Windows directory. Any suggestions since Total Commander won't delete it. Will edit registry to find it on the Storage Card.
Deleting files in Windows folder
mynullvoid said:
Hi, how can I delete a file in \Windows folder? it seems complaining that the file is in ROM, I had tried many way even using other File Explorer or via ActiveSync. None of them work.
How can I delete a file in \Windows folder in my Microsoft Windows Mobile 6?
Click to expand...
Click to collapse
I have the same problem - I have colpilot.wm6ppc.cab in my Windows directory. It's 12.6mb, I don't want it, and it's taking up a lot of storage space. My phone is a T-Mobile MDA and it obviously came with CoPilot as an option, but I think it's really unfair that the cab is right there in the Windows dir and I can't get rid of it....
Any help gratefully received....
Cheers,
Ed.
The cab is cooked in as part of the rom; there's nothing you can do about it, except flash a custom rom (this is one of the main reasons people flash custom roms). Be glad it was installed as a cab and not as a full package-at least cabs are compressed are a single file.
Farmer Ted said:
The cab is cooked in as part of the rom; there's nothing you can do about it, except flash a custom rom (this is one of the main reasons people flash custom roms). Be glad it was installed as a cab and not as a full package-at least cabs are compressed are a single file.
Click to expand...
Click to collapse
I think the issue is not on the files in ROM.
I have the same problem. I've copied a file under Windows folder and after that I'm unable to delete it.
Strangely I'm able to rename it, which should mean that file is not in use, however deletion is not possible.
I've used TotalCommander, the built-in Explorer and also connected the phone via ActiveSync, but still nothing happens and access seems to be denied.
The exact message is "deletion error".
Any idea?
Thanks.
Cheers...
-nOra-
A very common problem with Windows explorer is reported on all Windows help forums. I've seen people complaining about problem with long path files deletion.
Some common problems with Windows Explorer people talk about:
- Doesn't allow to delete files with long path names
- Pops up error while deleting unwanted files or unnecessary files
- Errors like: Access denied, sharing violation, source in use etc.
I've found a very simple but smart solution for all these above mentioned common problems. A very simple but powerful tool to overcome these problems. Everyone who plays with the files must have this tool. Its compatible with all versions of Microsoft Windows.
johnylog.software said:
A very common problem with Windows explorer is reported on all Windows help forums. I've seen people complaining about problem with long path files deletion.
Some common problems with Windows Explorer people talk about:
- Doesn't allow to delete files with long path names
- Pops up error while deleting unwanted files or unnecessary files
- Errors like: Access denied, sharing violation, source in use etc.
I've found a very simple but smart solution for all these above mentioned common problems. A very simple but powerful tool to overcome these problems. Everyone who plays with the files must have this tool. Its compatible with all versions of Microsoft Windows.
Click to expand...
Click to collapse
Could you please tell us the name of this wonderfull tool, and how to have?
djulen said:
Could you please tell us the name of this wonderfull tool, and how to have?
Click to expand...
Click to collapse
Based on how he said it, I have to really wonder if he really does have such a tool...
badbwoydes said:
Based on how he said it, I have to really wonder if he really does have such a tool...
Click to expand...
Click to collapse
Use Total Commander to modify the contents of the \Windows directory.
Yes, but you won't be able to delete a ROM file anyway.
In the \Windows folder, you commonly encounter three kinds of files :
- Pure ROM files (can't be deleted nor renamed nor moved, nor even copied, but can be overwritten, consuming internal storage memory space in the process to store the new copy, that will become used instead) ;
- Files put there by installation CABs or else (can be freely deleted, renamed or moved, provided they're not currently used by a running process) ;
- Files put on top of previously existing ROM files, wearing the same name (deleting, renaming or moving them will thus make the original ROM file undertneath to reappear with its original contents and attributes).
Once you've understood that, you'll be more aware of what's cooking there.
ROM files can't even be copied, but you can use ROMExtractor to copy them elsewhere, in case you want to study them, or use them in your own ROM (useful to get up-to date versions from another HTC device to cook your own ROM).
Since ROMExtractor is a very minimalistic tool (you have to type in all the files names with their path, same for the target copy, all one by one !) manually extracting hundreds (even thousands) of files is a very tedious taks, I made a MortScript to automate the process in order to extract all those DLLs, EXEs, MUIs, etc. files that can't be directly copied from a phone's ROM.
On the other hand, you absolutely can't delete a ROM file to make room. Overwriting it with a file wearing the same name will jut result in actually adding the new file, thus consuming even more room. The new file will just be used instead of the original one (so you can still update or personalize the ROM).
As a direct consequence, the only way to get rid of unwanted ROM files or permanently replacing them with up-to-date ones is to cook a ROM and flash it to the device to replace the old one.
That's way how operating systems can become better and better, and save space at the same time.
And no, Windows Mobile isn't dead : I'm not quite finished with fixing it until it's perfect, so it's not over yet. LOL

How to install .wadesktop theme on htc hd?

how to install a file .wadesktop?
after some research I found that it should be copied on the memory card for example and then be run as a .cab
but when I run it, it does not recognize the file type and it can not open
phoenix117 said:
how to install a file .wadesktop?
after some research I found that it should be copied on the memory card for example and then be run as a .cab
but when I run it, it does not recognize the file type and it can not open
Click to expand...
Click to collapse
ive never heard of this but I also have tried the import/export feature and it doesnt work so i prefer to just copy paste files because that does work.
You need to have Wisbar Advance Desktop 2 installed for it work.
If you have the latest version of WAD2 installed, the export function works and produces a .wadesktop file as the output which is a bit like a .cab file.
Regards
I already have Wisbar Advance Desktop 2 installed but it doesn't work when I tap on a .wadesktop
it doesnot work for me too
pleaz help

the noobiest question about installing applications

i am trying to install some applications on my brand new touch pro 2..
but the bundles of files i get to install is not called .cad files. my computer tells me they are dll files..
anyone care to noob me around a bit ?
prokrank said:
i am trying to install some applications on my brand new touch pro 2..
but the bundles of files i get to install is not called .cad files. my computer tells me they are dll files..
anyone care to noob me around a bit ?
Click to expand...
Click to collapse
Sure....what exact files are you downloading? You should be able to tell when you're downloading them that the extension is ".cab"...as long as that's the case, just put the .cab file on your phone and click it to run from there.
sirphunkee said:
Sure....what exact files are you downloading? You should be able to tell when you're downloading them that the extension is ".cab"...as long as that's the case, just put the .cab file on your phone and click it to run from there.
Click to expand...
Click to collapse
in other words. Don't unpack the "cab" files on your computer or phone... just transfer the entire "cab" package to your sd card or phone. Use file explorer (on your phone) to navigate where you have saved the cab files. Select the cab file and the installation will begin
aaand this too just for the noobness haha.. if you've d/l'd a .cab to your pc and have winrar installed on it.. winrar will show the .cab's icon as that little set of books like a .rar file.. they're both archives, but the .cab doesn't need unpacking.. it's like a windows mobile version of a .exe for the pc.. just saying, i did that too at 1st.. a loong time ago.. haha
just copy and paste to your phone storage and you are all set

Extract SMS on WP7

Hello there,
just for your info - maybe it helps somebody:
after some days of trying i found the shortmessages (with tel-number etc.) and some other stuff in a file:
1. Explore your phone with Windows Phone Device Manager
2. goto \Application Data\
3. Add "\Microsoft" to the path (under the file-explorer logo)
4. goto Outlook\Stores\DeviceStore
5. Rename "store.vol" to something like "store.vol.txt" (it is mandatory to rename this file - without this step the file is in use by outlook)
6. extract it (drag n drop)
7. run perl script (#perl test.pl store.vol.txt)
8. See output
Maybe one of you could build a backup application or something like that!
Link to perl script:
http://uploaded.to/file/he26q0d2
Original source of script:
http://www.pocketpcjunkies.com/Uwe/Forum.aspx/pocketpc-dev/21040/Reading-pim-vol-EDB-File-on-a-PC
Edit:
Don't know if you've seen it:
\Application Data\Microsoft\Outlook\Stores\DeviceStore\data
ALL emails and other messages + contact-pictures + signature (three sizes) (just edit the file extension to .html or .jpeg - hex edit helps to find what is right )
\Application Data\Microsoft\Internet Explorer
-> TabsStorage.bin: Opened tabs from internet explorer (where are the cookies?! )
\Applications\Data\82A23635-5BD9-DF11-A844-00237DE2DB9E\Data\IsolatedStore
ALL Facebook-Information (if app is installed), including messages, pictures, notifications etc. etc.
\Application Data\Location\Cache
Wifi & GSM Data when features is enabled in WP7-preferences (encrypted?! don't know..)
Much more to come...
greets
endeffekt
Thanks! Looks interesting, I might try that!
Hey just wondering but does syncing with outlook have the option to sync texts? Only reason I wonder is because you said that file was in use by outlook....
WP7SuperFan said:
Thanks! Looks interesting, I might try that!
Hey just wondering but does syncing with outlook have the option to sync texts? Only reason I wonder is because you said that file was in use by outlook....
Click to expand...
Click to collapse
Hey,
i just THINK it's in use
If you look at this file without renaming it's at 0,00 KB and you can't extract it. Maybe the contacts-tile or something else is using it
Hi Endeffekt,
thank you for this great hint!
But one more question before I try. Is it possible, to rename the file after the procedure back to "store.vol" without losing the messages on the phone?
schluff1 said:
Hi Endeffekt,
thank you for this great hint!
But one more question before I try. Is it possible, to rename the file after the procedure back to "store.vol" without losing the messages on the phone?
Click to expand...
Click to collapse
WP7 creates a copy of this file (automatic), so no problemo sir
Great! Alle messages are there. But the script doesnt work for me.
Now we need a smart developer who can make a viewer for it.
Is there a way to copy the vol file back to the phone? Or is the file always locked? For restore reasons...
I think this is very interesting (possibility to backup/restore SMS), so probably we should keep it on the front page so the devs could notice it.
Has anybody tried to restore that store.vol into the device after a reset? I mean rename the current store.vol to any filename, then copy the backed up store.vol to the phone and restart.
I'd like to try but i need to get hold all my current sms!
Pixa1 said:
I think this is very interesting (possibility to backup/restore SMS), so probably we should keep it on the front page so the devs could notice it.
Click to expand...
Click to collapse
i agree
thanks a lot Endeffekt for sharing such important information
i sent the file to my pc but still couldn't edit it,
if anyone know other way than perl script please share,
i'm trying to edit the file and insert old sms from my old phone
thanks
Gray.Fox said:
i agree
thanks a lot Endeffekt for sharing such important information
i sent the file to my pc but still couldn't edit it,
if anyone know other way than perl script please share,
i'm trying to edit the file and insert old sms from my old phone
thanks
Click to expand...
Click to collapse
Hint: it's an EBD database (like other files too)
Don't know if you've seen it:
\Application Data\Microsoft\Outlook\Stores\DeviceStore\data
ALL emails and other messages + contact-pictures + signature (three sizes) (just edit the file extension to .html or .jpeg - hex edit helps to find what is right )
\Application Data\Microsoft\Internet Explorer
-> TabsStorage.bin: Opened tabs from internet explorer (where are the cookies?! )
\Applications\Data\82A23635-5BD9-DF11-A844-00237DE2DB9E\Data\IsolatedStore
ALL Facebook-Information (if app is installed), including messages, pictures, notifications etc. etc.
\Application Data\Location\Cache
Wifi & GSM Data when features is enabled in WP7-preferences (encrypted?! don't know..)
da_mayhem said:
Has anybody tried to restore that store.vol into the device after a reset? I mean rename the current store.vol to any filename, then copy the backed up store.vol to the phone and restart.
I'd like to try but i need to get hold all my current sms!
Click to expand...
Click to collapse
I will try this today
endeffekt said:
I will try this today
Click to expand...
Click to collapse
How was it?
endeffekt said:
Hint: it's an EBD database (like other files too)
Click to expand...
Click to collapse
thanks endeffekt for the hint i'll look into it thanks alot
endeffekt said:
I will try this today
Click to expand...
Click to collapse
i hope you or anyone can try and confirm i have only one device i can't risk it
also couldn't try it on my emulator i think i misconfigured something
if i find anything i will post here
SMS retreival on Windows phone 7 using device manager
Hey all.
I have an Samsung Omnia phone 7. Dev unlocked. Running 7.0.7004.0
Anyone any idea how to view the file in question? I need to download this file, and save the SMS entries to my PC.
When I use device manager, I cant see a folder called
\Application Data\Microsoft\Outlook\Stores\DeviceStore
I mean, when I copy and paste the above text into the path, its just beeps and doesnt show anything.
On the root under file explorer, I have
My Documents (which is empty)
Windows (lots of files in it)
-ActiveSync
-Application Data
--KeyStorage
-AppMgr
-ColdInit
-eventlog
and a few others
When I open the Application Data folder, I only have a 'Key Storage' (certainly no Microsoft folder, and I tried typing it incase it was hidden or something , but just a ping sound and no refresh of the file list)
and when I open Key Storage, I have no files.
Any help working out why I cant see these folders / store.vol file would be very much appreciated
Does Windows Phone Device Manager not support this functionality on the Omnia?
Thanks
this should be a sticky, and testers needed
Using the diagnosis code 5**6244*3
I was able to open the Apps Launcher and Shortcuts Menu and can confirm that the path \Application Data\Microsoft\Outlook\Stores\DeviceStore exists on my Focus.
In that folder, I have:
temp
0
4
6
3
19
8
Each of these folders has a list of single alpha named folders (a, b, c, d, e, etc...)
Each of these alpha folders has a single .dat file
I haven't tried to extract those files to try to play with them. I don't know how I would with the Focus... But just confirming the path exists on my Focus and has the .dat files
thank you munkeyphyst, still waiting for endeffekt
endeffekt said:
Hint: it's an EBD database (like other files too)
Click to expand...
Click to collapse
Thanx for your hard work... Any success???? i'm intrested in the extraction of sms in the form which can b read on computer. i tried as you said renamed and copied to computer but i can not read that in computer... is it encrypted ?? Any help in that is appreciated.......
I've checked out all the EDB recovery/readers on teh net and cannot open one of these "edb" files from the phone.
if anyone knows the architecture of the file, I can parse it and have a program ready quickly.
some talk about EDB

Compress files

Hello,
I have an idea to make an App, and I have one problem, I have to upload one folder that its content have a lot of files and folders in order to upload to skydrive. I think that it is more easy if I compress the main folder and then upload this compressed file. How Can I compress this folder?
Thanks you
cansado2930 said:
Hello,
I have an idea to make an App, and I have one problem, I have to upload one folder that its content have a lot of files and folders in order to upload to skydrive. I think that it is more easy if I compress the main folder and then upload this compressed file. How Can I compress this folder?
Thanks you
Click to expand...
Click to collapse
have you tried zip...
dazza9075 said:
have you tried zip...
Click to expand...
Click to collapse
Hi dazza9075,
Thanks by your answer, but I thought the same, but I don't know how to use this, Can you explain about use of zip? Or, Where can I find information about this?
Thank you again
cansado2930 said:
Hi dazza9075,
Thanks by your answer, but I thought the same, but I don't know how to use this, Can you explain about use of zip? Or, Where can I find information about this?
Thank you again
Click to expand...
Click to collapse
+1 for the idea... I also want a program like winrar which also available in symbian phones.plz any dev note this and develop an app for compressing and decompressing files...
WP will unzip zip files, make the sip, copy to sky drive, open via IE, it will then give you the contents of the zip,, it can't compress files to zip though. Technically there would be little point since docs auto sync to sky drive, and WP doesnt support anything else or file system access, but its doable for unlocked devices I suppose
Sent from my SGH-i937 using XDA Windows Phone 7 App
dazza9075 said:
WP will unzip zip files, make the sip, copy to sky drive, open via IE, it will then give you the contents of the zip,, it can't compress files to zip though. Technically there would be little point since docs auto sync to sky drive, and WP doesnt support anything else or file system access, but its doable for unlocked devices I suppose
Sent from my SGH-i937 using XDA Windows Phone 7 App
Click to expand...
Click to collapse
Hi dazza9075,
Thank you by answer, I had thought that it isn't possible, because I want to compress a folder of other app that her content are a lot of files and folders. So, Do some api exist in order to compress this? Or, Have I upload files and folders one by one?
Thank you again
I think it's completely possible
sombody names Ego zheng,wrote an application. It is program manager.
u can repack your apps,and save apps data in a single .zip file.
i think he can do this
contact him for this idea.
Leo_zodiac said:
I think it's completely possible
sombody names Ego zheng,wrote an application. It is program manager.
u can repack your apps,and save apps data in a single .zip file.
i think he can do this
contact him for this idea.
Click to expand...
Click to collapse
its doable so long as you have interop unlock and WP tools installed and setup
if the Windows Phone SDK is missing Zip functionality (it may be called "DEFLATE" which is the name of the compression algorithm; ZIP is the file format) then there are surely libraries for various compression methods which you could download. Alternatively, if you don't mind using native code homebrew, there are compression libraries (zlib, etc.) that can be compiled to a native DLL, and you could then access them via COM.
i add this to new version of my file manager and now you can compress and decompress file and folders
Hi!
Thanks you by your answer, they have been very useful.
Thanks you
Hi again,
I'm using the lib "SharpZipLib" and I have problems with it. Can you explain how use it? or what is the problema? I probe in a program of pc and it working correctly but in app for my mobile say it crashed when it go to create the file, this is code:
FileStream fsOut = File.Create("Copia.zip"); //here is the problema at this moment
ZipOutputStream zipStream = new ZipOutputStream(fsOut);
zipStream.SetLevel(3);
zipStream.Password = null;
........
It can't create the file.
Thank you again
Generally speaking, Silverlight (which WP7 uses for apps) doesn't even allow normal file access, so you might just be getting a MethodAccessException on File.Create. If not, that still won't work without elevated privileges. The default working directory for a program is it's install directory. For a WP7 app, that's going to be either its install location (\Applications\Install\<GUID>\Install) or the Windows directory where the taskhost.exe file lives (\Windows\). Trying to create a file without specifying full path will crete it relative to the working directory, which in this case means creating it in the working directory directly (no path specified). Since the app can't write to the working directory, you'll get an error from that too.
To get around the permissions error, use the IsolatedStore folder (\Applications\Data\<GUID>\Data\IsolatedStore\) or run the app with full permissions ("Trusted" or root unlocked).

Categories

Resources