[HELP]C#.net packing up a folder into a one single file - Windows Mobile Development and Hacking General

Hello all XDA members
well i was actually making an APP which could actually pack all the contents of a folder into a one single file
like a ZIP one
which could retain all the exact information of folders , files , their names etc etc
but till now i m not able to find any answer
could anyone help me out of this?
i am using .net framework 2.0 for my work
thnx in advancve

Search for cab making programs, like WinCE CAB Manager.

Why not just make a zip file? If you want a program to do then, then create a zip file with the program

Related

Winampaq skins

Does anyone use Winampaq? If so, have you managed to use any of the Winamp 2.x skins?
I'm having trouble trying to use them. Basically, I put the relevant skin (.wsz) file in a folder, but when I use the browse function on Winampaq, the list only shows the folders and not what is contained within each folder
Any ideas?
Many thanx
change the wsz extention to zip and unzip the files to a dir
and point to that dir using winampaq
and they all work at least all the skins i've tried
Thanks Rudegar, but you must excuse my ignorance. I have zipped the wsz file, but I can't extract it directly to my XDA2. I have to extract it to my desktop first, before syncing the file to the XDA2. But once extracted to the desktop, it is a .wsz again so zipping it hasn't made any difference.
Could you explain to me step by step how you do it, please?
I'm using "StuffIt" to zip the file, but I guess the results would be the same as if using "WinZip".
Once again, please excuse the ignorance, but I really want to change the skin as the default one isn't very pleasing to the eye!
Many thanks
you have to CHANGE the extention of the file
before
skinname.WSZ
after
skinname.zip
you have to edit the file name not zip the file
wsz is just a zipped file to begin with
after you change the extention you can just copy out the stuff from inside it
i use total commander both on my pc and on my xda because it makes it easy to work with zip files and other things, it sees zip files like dir's and you can copy stuff from inside them without any problems
Many thanks for your help, Rudegar. I will give it a shot...

How to install .XML files??

How to install the .xml files bundled in the cabs.rar?? I do not know how to make the extrom run automatically after the HR so i have to install each cab file 1 by 1, can anyone help??
Use the ones in cabs2. Also make sure you know what are those .xml for (they are replaced with .cab (s) in cabs2)
xml files are a typicaly a formatted text file like html
not really binary exe programs files
some programs use xml files to store settings and data
maybe they need to be in a location the program in question
will look for them
Rudegar said:
xml files are a typicaly a formatted text file like html
not really binary exe programs files
some programs use xml files to store settings and data
maybe they need to be in a location the program in question
will look for them
Click to expand...
Click to collapse
Did you mean copy the .xml files to the location of the program file ??
use HTCustom1.7.cab
yup...
I am having the same issue. I keep seeing these .xml files. I am not a computer guru lol. Do I cut and paste it somewhere on my phone or what? I am so lost please help.
Same thing here on my side mixtape_butcha. I'm subscibed in an Universal forum and have to install a USB switch which is a folder containing an xml file. I asked many time a guide on how to use it but nothing came back.
If you happen to know how to handle it, let me know. I'l do the same with you.
bests
Michael
first of all it is nice that you looked up a matching post yourself and obviously searched for a solution there, but...
if i get your problem right, it doesn't match the ones before. they were talking about .xml files that came with a cab file and stored the settings on how to install and execute.
you, however, talk about a subscribtion to a thread, meaning your xml file is an RSS feed, for which you need a special reader, since PIE is not a proper desktop browser and therefore does not handle feeds. but there is a lot of software out there to handle rss feeds. i personally use spb online 1.2, but there is also freeware, like this: http://www.dewantoro.net/search/pda+rss+reader+cab
i don't get the point with the usb switch though, maybe if that didn't solve your problem you should post further details about that issue and maybe post filenames or screenshots so we all know exactly what you are about to do.
You need not worry to install xml file if it comes with a cab. Cab file should be designed to use it automatically. xml files store usually configurable settings, it may be worth opening those files using any text editor like note pad or even IE to check the contents, that may help if any change is needed. But 99% chances are that you need not do any thing with those xml files.
I have found some people run in to this problem when they download a .cab file from the internet and once downloaded it is a .rar so you extract the .rar to find NOT .cab but .xml
Here is more about it and how to fix it.
http://forum.xda-developers.com/showthread.php?p=2367946#post2367946
I am trying to install a game on my MDA Vario IV , it does have .xml file. But no .cab files , only .000 file , .002 , .003 , and .004 files. How do i install this game then ? The installer is the .xml file.
EDIT : Nvm , fixed it , i needed not the files within the .cab file , but just the .cab file itself to extract in on my mobile.
Hello guys iam actually looking to install a sat nav software on my HTC TOUCH HD phone and i got this file called SETUP.XML Document and there's thousands of other files in the same location called KB, which i have no idea what they are but my problem is when i copy those files to my phone and open the SETUP.XLM Document, it opens by the internet explorer in the phone and it does nothing, please let me know if u know any answer to this.
Thank you very much....
nickholas said:
Hello guys iam actually looking to install a sat nav software on my HTC TOUCH HD phone and i got this file called SETUP.XML Document and there's thousands of other files in the same location called KB, which i have no idea what they are but my problem is when i copy those files to my phone and open the SETUP.XLM Document, it opens by the internet explorer in the phone and it does nothing, please let me know if u know any answer to this.
Thank you very much....
Click to expand...
Click to collapse
Couple of things:
You are in the wrong subforum. This section is for the Blue Angel. You should look for the Blackstone (aka Touch HD) section.
Now, the file that you opened is a cab file. You don't need to extract the contents of a cab file. Just copy it to your device and click on it one. The cab will install everything, including the settings in the xml.
Good luck!
Gili50 said:
I am trying to install a game on my MDA Vario IV , it does have .xml file. But no .cab files , only .000 file , .002 , .003 , and .004 files. How do i install this game then ? The installer is the .xml file.
EDIT : Nvm , fixed it , i needed not the files within the .cab file , but just the .cab file itself to extract in on my mobile.
Click to expand...
Click to collapse
Couple of things:
You are in the wrong subforum. This section is for the Blue Angel. You should look for the MDA IV (aka Touch Diamond) section.
Now, the file that you opened is a cab file. You don't need to extract the contents of a cab file. Just copy it to your device and click on it one. The cab will install everything, including the settings in the xml.
Good luck!

How to copy file with 'ROM' attribute? (or how to change that file attribute?)

Hello,
I am trying to copy a file (from my smartphone to SD card), which have a 'ROM' attribute set and... it is impossible - acces denied is showed (even in Resco Explorer, Total Commander). I can't even change that attribute.
Please help me to find any solution
Best greetings,
RA
You should be able to extract files from the ROM file on your PC thanks to the tools provided in one of the sticky about ROMs modifications.
Unfortunatelly...
Cricri said:
You should be able to extract files from the ROM file on your PC thanks to the tools provided in one of the sticky about ROMs modifications.
Click to expand...
Click to collapse
I have extracted an 'nb' file from my ROM file, but WinImage can't open it ("not FAT16, FAT32 file"). It is WM6 image file, what tools to open this 'nb' file?
Best greetings,
RA
I, too, am trying to find a way to copy some ROM attributed files.
Ultimately, I am trying to move/copy some apps from one smartphone (WM5) to another (WM6). Is there a way to copy them to a zip file and move the files that way or maybe even using a backup copy (i.e. using Sprite Backup?) and restoring to a different phone?
Any help or direction would be appreciated. If there is another thread out there, please be sure to point me to it since searching brings up a lot of different threads.
u need to extract the rom.
Funny, but you make it sound so easy... ;-) I've been searching to figure out how to do that and found some instructions I'm hoping I can follow for the one phone, but not sure it it will apply to the old phone (WM5). If I do manage to dump the ROM, where does it go and does it extract the files in cab format for easy upload?
Update: I found a file extractor at http://pdaphonehome.com/forums/ppc-6700-xv6700/56057-6700-rom-dump.html which may have originally come from Buzz... (thanks Buzz!)? so now I have all the files and modules off the old phone, but am running into some issues installing. I can transfer the files indirectly, and can find the specific application file, but when trying to run the app, it tells me that it's still missing files to enable the program. Any ideas on how to determine which files they might be or how to install the files via Activesync?

Zip files?

Hey all, I'm fairly new to modifying my diamond, I know about cab files, and how you just drag into internal storage. but what do I do with zip files? the only time I've been able to do something with one was when I opened it and there was a cab file inside. but what do I do with a zip file to get the files onto my phone? thanks
also, I have rom version 1.09 on my phone, i'm pretty sure there's a new version available? would that be the same thing as flashing the phone, or is that just an update you do somehow. thanks
Updating your software to a new version is called flashing, whether you do it with an official ROM or a cooked ROM.
About your question:
If you download a .zip file, just open it on your pc with a program like winzip or winrar and the content of the zip file will be extracted to your computer. Just copy those file(s) to your phone and use them, easy as that!
Zipping a file just makes it smaller, so its less heavy to download for people with a slow internet-connection. A zip file alone isn't a program or something, it just contains other files in a smaller form.
whis said:
Updating your software to a new version is called flashing, whether you do it with an official ROM or a cooked ROM.
About your question:
If you download a .zip file, just open it on your pc with a program like winzip or winrar and the content of the zip file will be extracted to your computer. Just copy those file(s) to your phone and use them, easy as that!
Zipping a file just makes it smaller, so its less heavy to download for people with a slow internet-connection. A zip file alone isn't a program or something, it just contains other files in a smaller form.
Click to expand...
Click to collapse
so how do you install a zip file as a program not just as an app in a folder?
cool, thanks whis that helps
edit: do you just drag the files into internal storage? I dont understand what I do with all of the individual files when they are on my phone. for instance, i'm trying to get a diamond theme for s2u2, and I have all the individual files on my phone, wallpapers and templates and such, than what do you do with them?
can anybody help me
same problem here! did you get it figured out?
no i still have no idea what to do with zip files, unless there are cabs only inside them. haha please help! I know why so many apps on here are zips, just don't know how to use them
MDtouchDiamond said:
cool, thanks whis that helps
edit: do you just drag the files into internal storage? I dont understand what I do with all of the individual files when they are on my phone. for instance, i'm trying to get a diamond theme for s2u2, and I have all the individual files on my phone, wallpapers and templates and such, than what do you do with them?
Click to expand...
Click to collapse
Typically theme files for s2u2 (and most other apps) will need to go in a sub folder of the program's folder in program files.
For example when you install s2u2 there is a directory created on the device as follows: /My Device/Program Files/S2U2/gfx
So you would put the files from the .zip in that folder if they are for themes.
I think this is what you were asking. Each program is different and may or may not have a folder for themes. Its best to ask about that from the individuals that develop or provide the program.
Hope this helps!
powe that helps a little bit. So say in that gfx folder for s2u2, you have all those individual files, wallpapers, clocks, ect...how would I go about applying that to s2u2? I guess thats my main question, I can see where all the files are on my phone from the zip, don't know how to use each of them

HD2 cab install

hello guys, i dont own an hd2 yet but ill buy one this month but i have a question i want to add some cabs file on my device when i get. My question is i have download some cabs BUT when i open the winrar i dont get any cab file, all i get is some files that has bunch of numbers and one of them says "_setup.xml" so what should i do? should i directly put the winrar file on my hd2? since i dont get any cab file inside the winrar?? and if there's a cab file inside the winrar and i press the button "extract here" should i just upload the cab file only to my hd2 right??
Hope you guys can help me.
Thank you.
Hi.
A CAB file is a compressed installer file for mobile phones.
If you open it with winrar, you will see all the files it contains.
Just copy the original .cab file to your phone.
Click on the .cab file, and it will run the installer, and install the program on your phone.
You can choose to install to the main memory or the sd card.
Yeah - as above. What you're calling a "winrar" file is the cab file.
Extract a cab
Ok, I know this isn't the original question but...
is it possible to extract a .cab file - i mean to extract all the different files that make up the program , all the .exe .dll .ico etc etc. Wanting to do this to help me reverse-engineer a couple of omnia 2 cabs that don't work.
kinsago said:
Ok, I know this isn't the original question but...
is it possible to extract a .cab file - i mean to extract all the different files that make up the program , all the .exe .dll .ico etc etc. Wanting to do this to help me reverse-engineer a couple of omnia 2 cabs that don't work.
Click to expand...
Click to collapse
yes extract the files with winrar
ohhh okok i get it now.. so i just donwload thw winrar which is the cab file and i copy it to my hd2. thanks guys
Richy99 said:
yes extract the files with winrar
Click to expand...
Click to collapse
Tried that, all I get are 10 files. One of them is _setup.xml, the others are numbered files.
I've attached a screen capture of the files so you can see what they are.
kinsago said:
Tried that, all I get are 10 files. One of them is _setup.xml, the others are numbered files.
I've attached a screen capture of the files so you can see what they are.
Click to expand...
Click to collapse
Yes that's what you would expect as they are the cab install files.
If they don't mean anything are you sure you know what you're doing?
That's what I'm trying to find out. I assume that the WM program works in a similar way to windows program in that its a collection of files (exe, ico, dll, cfg so on so forth) that get installed in the appropriate places on the device. If so, how do you 'unpack' these files from the setup files
use a cab manager program. I don't so I can't recommend, but wincecab manager sound familiar. u can use them to create cabs of your tweaks, install files and such.
it seems that you have never used windows mobile (just copy the winrar file into the device and run it from the device)
hoss_n2 said:
it seems that you have never used windows mobile (just copy the winrar file into the device and run it from the device)
Click to expand...
Click to collapse
I'm not trying to install a cab file (which the first post was about) I'm trying to decompile the omnia 2 video editor to get it to run on the HD2 but instead of starting a new thread, I asked on this one because it seemed (partially) relevant.
BTW, I've got the cab 'extracted' so thanks - no for the difficult part...

Categories

Resources