Help with a batch file - Windows 8 General

I need some help with a batch file. I am going to run the batch file on a usb flash drive/thumb stick. What I need it to do is copy three files from the usb flash drive/thumb stick to a directory on a computer. The three files are drivers. A Netgear N150 WNA1100 drivers to be exact. I have been looking around different websites but they have been no help to me.

No help?
Sent from my rooted Pantech Burst running Gizmolord V4.0 RC7

Code:
@xcopy "%~dps0\driver_blah_blah" "dest_drive:\path\"

e.mote said:
Code:
@xcopy "%~dps0\driver_blah_blah" "dest_drive:\path\"
Click to expand...
Click to collapse
Actually, xcopy has been depreciated in favor of robocopy.
--------------
Usage :: ROBOCOPY source destination [file [file]...] [options]
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
file :: File(s) to copy (names/wildcards: default is "*.*").
:
: Copy options :
:
/S :: copy Subdirectories, but not empty ones.
/E :: copy subdirectories, including Empty ones.
/LEV:n :: only copy the top n LEVels of the source directory tree.
/Z :: copy files in restartable mode.
/B :: copy files in Backup mode.
/ZB :: use restartable mode; if access denied use Backup mode.
You can get these by opening a command prompt and typing robocopy /?

Robocopy isn't present on all Win boxes. There are still a lot of XP boxes out there. Xcopy isn't as robust, but for copying a few driver files from USB, it doesn't need to be.
I assumed OP is informed enough to know basic copying syntax. His difficulty is with the USB drive letter, which is dynamically assigned by default. The %~dps0 is what he's looking for. Syntax to this is in an unlikely place, for /?.
Speaking of deprecating, *.* wildcard has been out of fashion since the DOS days.

e.mote said:
Robocopy isn't present on all Win boxes. There are still a lot of XP boxes out there. Xcopy isn't as robust, but for copying a few driver files from USB, it doesn't need to be.
I assumed OP is informed enough to know basic copying syntax. His difficulty is with the USB drive letter, which is dynamically assigned by default. The %~dps0 is what he's looking for. Syntax to this is in an unlikely place, for /?.
Speaking of deprecating, *.* wildcard has been out of fashion since the DOS days.
Click to expand...
Click to collapse
Oh, well, it is a Windows 8 Forum, so I figured he was asking for this OS. I haven't tried xcopy on my Windows 8 machine, but it still works on Windows 7.
Speaking of color: Personally, I like to change the screen color when performing long copy commands, so that I know how far along the CMD file has progressed.
The OP does not have to worry about the drive letter if he is running the cmd file off of the thumb drive (which is my assumption). all he needs is to provide the name as the source; it will assume the drive letter and current directory. If he is trying to use it from the computer, that could be a problem.
EDIT: Sorry about the color comments. I was picking up the text colors in the quote box! (but I still like to color my screens on long cmd files).
EDIT again: As far as the *.* goes, I was simply pasting the result of the robocopy help command. You'll have to write MS about that one!

thanks e.mote I needed to write the batch file because my dad works for my ISP and he has to install the wireless USB adapter manually due to microsoft saying that any program not on the marketplace is illegal to install or run. I will make his time and install easier.
Edit: The batch file is gonna be used on multiple machines. So drive letters are way out of the question.
Edit 2: It is only gonna be run on windows 8 machines.

nightfire37 said:
thanks e.mote I needed to write the batch file because my dad works for my ISP and he has to install the wireless USB adapter manually due to microsoft saying that any program not on the marketplace is illegal to install or run.
Click to expand...
Click to collapse
That is completely false. Windows 8 will allow installation of any software, not just store software. Only windows RT restricts software installs and your drivers on a USB will not function on windows RT due to it being an ARM device and the drivers being for x86. And why use a batch file to copy another file, isnt that what Control-C and Control-V are for

SixSixSevenSeven said:
That is completely false. Windows 8 will allow installation of any software, not just store software. Only windows RT restricts software installs and your drivers on a USB will not function on windows RT due to it being an ARM device and the drivers being for x86. And why use a batch file to copy another file, isnt that what Control-C and Control-V are for
Click to expand...
Click to collapse
My dad wanted to me to come up with a solution to make the job easier and so i did and the guys that supposed to be helping the guys in the field that do this kind of stuff arent helping at all and inside the corporation, there are people that can barely know how to open up emails, let alone run an app but they cannot install or look onto the Local Disk because they will get lost and not understand it. i fully understand the differences of RT and the x86 versions of Windows 8. The machines my dad works on are x86 based. I did mess around with it and i was not happy at all with the changes Microsoft has done to it. I will never understand Microsoft's move to make there OS a touch screen based computer when almost every single computer that OEMs sell do not have touch screens. I'm getting off topic but anyways thanks for telling me this guys.

Frankly, if you're just copying a couple of files whose names you know, and they aren't directories and don't need special attributes applied, you may as well just use the old "copy" command. As in,
copy thefile1.sys, thefile2.inf, thefile3.cab C:\thedestfolder\
You can make it a bit more specific if you want to handle things like the case where the file already exists, or the destination folder does not... but the basic form is very simple. For help, you can use
copy /?

but dont you still need to worry about the drive letters?
Sent from my Samsung Galaxy Player 5.0 USA running CM10 using xda app-developers app

copy "%~dp0CHANGEME1.ext" "%~dp0CHANGEME2.ext" "%~dp0CHANGEME3.ext" "%SYSTEMDRIVE%\path\to\folder\on\host\OS\drive\"
This only works from a batch file (It will produce erratic results if ran from a plain command prompt), and you can test what it will send as paramaters by putting an 'echo' before the 'copy'. It will use absolute paths to the files in the same dir as the batch script, in case the working directory is not as expected (such as if it is ran as admin).
Here is the output on my system:
C:\Users\Nathan\Desktop\test>test.bat
copy "C:\Users\Nathan\Desktop\test\CHANGEME1.ext" "C:\Users\Nathan\Desktop\test\CHANGEME2.ext" "C:\Users\Nathan\Desktop\test\CHANGEME3.ext" "C:\path\to\folder\on\host\OS\drive\"

nightfire37 said:
but dont you still need to worry about the drive letters?
Sent from my Samsung Galaxy Player 5.0 USA running CM10 using xda app-developers app
Click to expand...
Click to collapse
If you put the batch file in the same directory as the drivers, you can simply run it from there, providing only the file name as the first argument, and the target drive (should always be C:\Windows\System32 - or whatever).
copy AAAAAA.dll C:\Windows\System32
copy BBBBBB.dll C:\Windows\System32
copy CCCCCC.dll C:\Windows\System32
xcopy and robocopy are really meant for copying large numbers of files.
EDIT: The former post is correct, using %SYSTEMDRIVE%\Windows\System32 would always find the system drive, even if it were not the C: drive. But I suspect the vast majority of computers are using C: as the system drive.

stevedebi said:
If you put the batch file in the same directory as the drivers, you can simply run it from there, providing only the file name as the first argument, and the target drive (should always be C:\Windows\System32 - or whatever).
copy AAAAAA.dll C:\Windows\System32
copy BBBBBB.dll C:\Windows\System32
copy CCCCCC.dll C:\Windows\System32
xcopy and robocopy are really meant for copying large numbers of files.
EDIT: The former post is correct, using %SYSTEMDRIVE%\Windows\System32 would always find the system drive, even if it were not the C: drive. But I suspect the vast majority of computers are using C: as the system drive.
Click to expand...
Click to collapse
If you right-click on a .bat and run as admin it will change the current dir to System32, so your method won't work unless the user has UAC disabled/is an admin, or if they do some horrific permissions changes to System32 to allow it to run as a non-admin.

There are other instances where the logged dir isn't the same as the calling script, eg when you drag-drop files onto the script to be processed. Granted it's not the case here, but it's good practice to assume as little as possible for Win shell scripting (which survived mostly untouched from DOS). There are enough quirks in it to already drive you crazy.
Speaking of quirks, I prefer %~dps0 (or simply %~fs0) over %~dp0 because the console buffer can be exceeded in case of really long path names, which results in an error. The 's' switches to the old 8.3 short-name format and obviates this problem. It also avoids the problem of pathnames with UTF-8 characters, which some Win versions can't recognize (I'm not sure about Win7, but Win8 can handle UTF-8 in the console fine). File/pathname is the most common issue in Win shell scripting. Always use double-quotes to enclose them.

netham45 said:
If you right-click on a .bat and run as admin it will change the current dir to System32, so your method won't work unless the user has UAC disabled/is an admin, or if they do some horrific permissions changes to System32 to allow it to run as a non-admin.
Click to expand...
Click to collapse
Most of my batch files use full paths, so I would not know. I just opened a cmd window as administrator, and it does go to system32. I never noticed that before.
I think then the best way to run would be to do a search for cmd (from the start menu), run it as administrator, and then change to the drive containing the batch file. From there it would execute.
Or try the other method described above.

thanks guys for this information. its much appreciated.
Sent from my Samsung Galaxy Player 5.0 USA running CM10 using xda app-developers app

Related

Modify the ROM in other PDAs.

Hi, there is a huge interest in other communities about what you are doing in here. I can say only one word, unbelieveable.
I have a few questions,
1- has anyone tried to do the same using any other Pocket PC?
2- is there any thoughts about to create a version of mkrom for Windows (I believe that the current one is for Linux)?
TIA
Hello!
I have very interested in mkrom version for windows too....
Hark0
[www.klonycs.net]
P.S. Frank, please email-me if you have more info about this topic.
Ehm, Windows as in the 95/98/ME/2000/XP family of desktop Operating Systems does not run from ROM, it runs from disk. It does not have persistent RAM, and as such does not have a cold-boot vs. warm-boot, unless you count OS installation as a cold-boot.
You can modify properties of the installation procedure using installation scripting, and you can 'freeze' an install you like by creating an 'image backup' of the drive it's installed on.
Duh! The above shows how dense I can be. Ofcourse you mean running mkrom on Windows instead of unix, not running mkrom for Windows.
You should be able to run it on Windows already, if you install the ActiveState perl environment and mess with it little.
I'm thinking maybe we should offer an environment through a perl script and samba or ftp right here... Hmmm...
Yes we were talking about to run the mkrom on windows.
What you are saying about the Perl enviroment could be a solution but I'm not really familiar with that. Could be simplest to recompile or create a version of mkrom for Windows (to run on windows)?
I know you are busy guys but I think you have not understood the magnitude of what you have done. Right now you can find 1000s of users willing to modify the ROM of there PPCs, no matter what kind of PPC they have. So please... think with a wider perspective.
I have a few things I have tried in my page www.pc-counselor.com/e740rom.htm and as you can see there, in the case of a Toshiba e700 series is very easy to get a copy of the rom and put it back. A lot easier than in HP devices.
That was me in the previous message, I did not notice I was not logged. Sorry
XDA developer Itsme said:
a windows box with http://www.cygwin.com/ unix tools will do too.
make sure you select perl and bash in the cygwin setup tool.
Click to expand...
Click to collapse
Keep in mind that for those who are not familiar with Linux and perl, etc all these instructions sound like chinise.
:lol:
You could also use a CD-ROM version of Knoppix.
No hassle to install Unix, just boot from CD and make one of your HD partitions write-enable.
I think I managed to create a rom image with MKROM on windows, and since I've never done anythign like this before, I thought I'd try to explain the process I followed so that other unskilled user like me could do it as well.
to all you advanced user, please feel free correct this if it is wrong.
1. MKROM
Download the MKROM distribution archive from http://www.xda-developers.com/mkrom/
… read the page while you’re there!!
Unzip mkrom.zip somewhere easy to find (not on your desktop, because your desktop is not easy to find in a DOS/UNIX window, I would suggest c:\mkrom\)
2. O2 ROM
Also download the Radio Unit Upgrade from:
http://www.sourceo2.com/O2_Developers/Launched_devices/O2_xda/default.htm
Once downloaded right click on Radio_Unit_Upgrade_v31703.exe and select “winzip/open with winzip” (if you don’t have winzip, download the demo at http://www.winzip.com)
In Winzip Locate the the file nk.nbf and extract it to your c:\mkrom\ folder (be careful, by default winzip will create a folder called “English” and put nt.nbf it in that folder. You don’t want that! It should just be in the c:\mkrom folder)
3. install CYGWIN
MKROM needs to be run UNIX or Linux (don't know which) by default but you can apparently run it on windows by using one of these:
• Activestate (http://www.activestate.com/)
• Knoppix (http://www.knopper.net/knoppix/index-en.html)
• CYGWIN (http://www.cygwin.com)
I tried CYGWIN
• Download setup.exe from http://www.cygwin.com
And run it. (this is a small software that allows you to chooses which bits you want to download and install)
• I selected “install from the internet” but you can also download first then install from the local drive.
• on the next screen I left all the default as they were. I don’t know whether DOS or UNIX text file type is better here, so I just left the default: UNIX.
• On the next screen select a FTP server from the list.
• Now you’re presented with a list of packages to download. By default, you won’t get all the necessary ones (the ones for the PERL scripts).
I didn’t know which particular package was needed so I’ve just selected the whole DEVEL section. ( to do that, click on the DEFAULT next to DEVEL and it will change to INSTALL.
If someone could tell us which particular packages are actually necessary, this would cut down on the 100Mb download
The rest can stay as is.
This will download then install, nice and clean!
4. runnig MKROM
Double click the CYGWIN icon and this will open a “DOS” window (I know it’s not DOS, but it looks like it)
You will see a prompt with
Code:
[email protected] ~
$
type in :
Code:
cd c:\mkrom
or whatever you’ve saved it to (now you see why it’s better to keep it simple)
the XDA-Developers have included a README in mkrom.zip which specifies you then need to type in:
Code:
chmod +x tounicode
then you’re ready to go:
type the following:
Code:
bash mkrom.sh nk.nbf
let it run for a while, (it took a bit over a minute on my P700Mhz)
when you see the prompt again, you’ve done it!
As described in http://www.xda-developers.com/mkrom/ you now have 2 files in c:\mkrom\out\
xdaromimg-1.nb1
xdaromimg-1.nbf
I think the file xdaromimg-1.nbf is the same as the nk.nbf that’s in jeff’ release.
http://cuba.calyx.nl/~jsummers/XDA/XDA-developers-SER-v11.exe
It’s exactly the same size, but I don’t know how to check whether they are exactly the same files.
the next step is to rename your xdaromimg-1.nbf to nk.nbf and replace the one that's in XDA-developers-SER-v11.exe with your new one. (do this still using winzip) save it and run the exe.
!!!!!I haven't tried to flash my XDA!!!!! but I just I'd share my experience with you, please tell me if I've got all of this right.
Ben Darras
is this right
XDA- developers, Jeff, anyone else,
Could you confirm that this procedure is correct, before we start shooting ourselves in the foot! :shock:
Regards
Alex
Does cygwin have perl installed by default?
Jeff did something else we recommended, which is take the files needed for EzWAP from a machine with the O2 ROM installed, and copy them to one of the files directories of the new ROM.
But EzWAP is quite large, so if you never use WAP you could copy other stuff there that more suits your needs.
Otherwise, the above procedure looks correct at first sight. Mind you we use a Linux box, and we have no experience doing this under Windows.
We recommend all people that burn ROMs they built themselves have an PC SD-card writer have experience using 'XDArit', so they can always use the bootloader method to get back to where they were. Flashing the .nb1 file using 'XDArit' and an SD card is marginally safer, since using 'Programme A' could overwrite your bootloader if something went really, really wrong.
Once you have established a new ROM will get the unit back up to the point where it connects via ActiveSync, others can flash it without too much danger. But if you want to avoid all danger and be completely on the safe side then do not make your own ROMs...
Thanks for the answer, Peter Poelman
Does cygwin have perl installed by default?
Click to expand...
Click to collapse
no it doesn't, I suggested...
...By default, you won’t get all the necessary ones (the ones for the PERL scripts).
I didn’t know which particular package was needed so I’ve just selected the whole DEVEL section. ( to do that, click on the DEFAULT next to DEVEL and it will change to INSTALL.
If someone could tell us which particular packages are actually necessary, this would cut down on the 100Mb download
Click to expand...
Click to collapse
Thanks for the additional info and the warning.
I love what you guys are doing here!
Ben
Jeff did something else we recommended, which is take the files needed for EzWAP from a machine with the O2 ROM installed, and copy them to one of the files directories of the new ROM.
But EzWAP is quite large, so if you never use WAP you could copy other stuff there that more suits your needs.
Click to expand...
Click to collapse
I'm using the NK.nbf that came from Jeff's download. this is the one that has ezwap files in it? If so can i download o2 rom update from there website and use it to build a custom rom? i don't need ezwap on my ppc and rather use it for something else. is my logic correct?
thanks
alex
kalex said:
I'm using the NK.nbf that came from Jeff's download. this is the one that has ezwap files in it? If so can i download o2 rom update from there website and use it to build a custom rom? i don't need ezwap on my ppc and rather use it for something else. is my logic correct?
Click to expand...
Click to collapse
Correct. You can download mkrom like it is now, not add the EzWAP files, and you'd have more space for your own stuff in there.
If you want to check that two files are identical, try the unix 'diff' command (which should have been installed with cygwin)

Install apps to Universal (WM6) using Linux host?

Hi Folks.
Many programs for PocketPC are wrapped in MS-Windows .msi installers.
I will never understand why, I don't see any benefits coming with it and you always need a USB connection (not seldomly involving administrative privileges to get the device registered in Windows), active sync and so on, just to install some lousy program
I don't like MS Windows (the desktop versions) and therefore I don't have it and I don't use it. I have access to Windows computers at work, but not enough system rights on the machines to get a usb connection.
Is there a way to
either:
install programs on the Universal using alternative helper applications (GNU/Multisync etc.), preferably open source and running natively on linux machines?
or even better:
extract the .cab archive from an .msi or .exe installer file so it can be directly copied to the PDA and executed there?
I've played with Multisync a little, but it only seems to support contact synchronization, no software installation...
Well if you have a windows pc you can start the installation process,
then when it tells you to install the program on the universal,
don't click on install, but use total commander or a similar program
to search for *.cab files. You will find the cab somewhere.
Copy it to your sd card or wherever because after the installation completes
the cab will be deleted.
Another way would be to install Virtual box on your Linux machine and
install Windows on that. Then you can have the virtual machine use your
usb port.
You'd have to search on google to find information on how to do that.
I'm in the same situation: no windows machine to run installers from.
I've had some luck using cabextract ( http://www.cabextract.org.uk/ )
When that fails (quite often it does) I've usually been able to get the .CABs by running the installer under Wine.*
To do this, I had to install activesync under Wine. It's a while since I did this, but apparently I downloaded the file activesync_4.2.setup.exe from microsoft.com and ran that with Wine.
When you run an installer for a WM app, it won't actually install onto your device (that would be too easy!) and in fact I don't even bother connecting my uni to my linux box during this stage. The aim is simply to get the .CAB files extracted.
The app installer usually craps out at the stage when it would transfer the files to my uni, but it's already extracted the .CABs. I generally find these in
Code:
/my/wine/drive_c/Program\ Files/ActiveSync/
or
Code:
/my/wine/drive_c/Program\ Files/Name_of_Application/
or sometimes in
Code:
/my/wine/drive_c/windows/temp/
Hope this info is some use to you!
*Full disclosure: actually, I use the version of wine that comes with Google's picasa 2.2, wrapped in a little script to set up the environment variables. That script, which I call picasawine goes as follows:
Code:
#!/bin/bash
mydir=/opt/picasa
export PATH=$mydir/../wine/bin:$mydir:$PATH
export LD_LIBRARY_PATH=$mydir/../wine/lib:$mydir/../lib:$LD_LIBRARY_PATH
export WINEDLLPATH=$mydir/../wine/lib/wine
export WINELOADER=$mydir/../wine/bin/wine
export WINESERVER=$mydir/../wine/bin/wineserver
export WINEPREFIX=$HOME/.picasa
exec /opt/picasa/wine/bin/wine [email protected]
so I run as (eg)
Code:
picasawine SETUP.EXE

Recovery Image and other tools

I finally got my ftp up and running. As promised, I have uploaded a slightly modified Vista backup for Acronis. It contains a preinstalled version of Office 2007. So, if you dont own Office 2007, please uninstall it
(Right-Click here and choose Save as...)
MyBackup.tib Slighty modified post-recovery Vista. Reg tweaks and Office 2007 (thanks to TokyoRob for providing the original)
Acronis will be back soon
RealVGA_11.CAB gives you real VGA under SnapVue
ResPack128dpi.ARM.CAB resolution pack for RealVGA
Recovery Partition Content.rar I guess the file name is meaning enough (thanks to devictoria for the upload, i know it was painful)**FIXED**
TabletPC_PatchXPproSP2.exe TabletPC patch for a non WINXP SP2 installation, can be applied at any time. Tested with English version only.
change_vista_language.iso Vista PE to change the language of any Vista installation, tested with HTC Shift.
Vista_x64_language_packs_links.html language pack needed for "change_vista_language.iso" (64bit)
Vista_x86_language_packs_links.html language pack needed for "change_vista_language.iso" (32bit)
WINMOUNT (tool to mount XVISTA.WIM) will be replaced with Microsofts WAIK (use ImageX.exe and command line)
http://www.microsoft.com/downloads/...6D-15F3-4284-9123-679830D629F2&displaylang=en
hdat2iso_4_6b1.zip boot image to use Hdat2, tool for SETMAX address and unhide HPA
hsect-2.1win32.zip POF's very loved HTC SHIFT EMBEDDED CONTROLLER TOOL
testdisk-6.9.dos.zip tool to unhide the recovery partition
Update 07/05/2008:
HTC Shift XP Drivers.rar added the Windows XP drivers and Vitakey package by febelus (http://forum.xda-developers.com/showthread.php?t=386492)
Update 07/23/2008
A-Patch140rc2b31_WLM.zip added to modify WindowsLive Messenger 8.5 (this enables you to save some desktop space when chatting)
Update 08/08/08 (nice date..should get married today)
Removed illegal content, such as Keygens, Crack and Serial. Trial versions should suffice. Added Windows Automated Installation Kit (WAIK) to alter the recovery partition content (license free).
The server is planned to be permanent, but only temporarily public. In one or 2 months, I will change the access to
ease my traffic. But until then, grab it while you can.
If anyone wants to add something (tools, different languages), please contact me for upload instructions. This ftp is planned to stay permanent.
https://phatpipez.homeftp.org/HTCShift/Shift/A-Patch140rc2b31_WLM.zip
Fingerprint_and_Omnipass.rar
HTC Shift DRIVER - Vista.zip
https://phatpipez.homeftp.org/HTCShift/Shift/MyBackup.tib
OrigamiExperiencePackv2.msi
Original WWE.rar --- original Windows Mobile rom for Shift.
https://phatpipez.homeftp.org/HTCShift/Shift/RealVGA_11.CAB
https://phatpipez.homeftp.org/HTCShift/Shift/Recovery Partition Content.rar
https://phatpipez.homeftp.org/HTCShift/Shift/testdisk-6.9.dos.zip
Aquasesh
I have tested the connection to my FTP... Its HTTPS, you have to install or allow the certificate in order to access my files.
Also, use Firefox or Opera to download. IE7 suffers from a HTTP Header error when accessing large files. ( i tried to fix it, but no luck)
Dont tell me its a nuisance to use FF or Opera instead of IE7.
If you really need / want those files, you should be willing to install one of those browsers...
I will UPDATE the files next Friday, any request, let me know.
Aquasesh
UPDATE 08/08/08
Windows Automated Installation Kit (WAIK)
This is used to create your own recovery partitions. You can slipstream updates, software and drivers.
It is license free and can be optained from the link in post #1.
To mount the XVista.wim from the Shift's recovery partition, locate the ImageX.exe in your programs folder.
(default =C:\Program Files\Windows AIK\Tools\x86\imagex.exe)
Copy the XVista.WIM to a location of your choice (preferably c and run the Imagex.exe in the Command Prompt.
First you have to find out which installation you want to mount. Usually Vista contains more than one installation
(Home, Home Premium, etc...) Each has a number.
In our case its easy, its only Vista Business, so we mount Number 1.
Type imagex.exe /mountrw c:\Xvista.wim 1 c:\Xvista
mountrw means read and write access
c:\Xvista.wim is the location you copied it....
1 is the image number within the archive
c:\Xvista is the mount path (can be anything you want)
The installation should now appear in Windows Explorer like a normal folder and you can modify its contents.
Recovery Image
With regards to the recovery partition restoration process;
The previously referenced instructions involve using a binary file to dd the image back to the disk.
When your RAR file is unarchived, it shows a directory structure with multiple files and one large WIM file.
What mechanism should one use to replicate the RAR contents to the recovery partition?
Thanks..
jposluns said:
With regards to the recovery partition restoration process;
The previously referenced instructions involve using a binary file to dd the image back to the disk.
When your RAR file is unarchived, it shows a directory structure with multiple files and one large WIM file.
What mechanism should one use to replicate the RAR contents to the recovery partition?
Thanks..
Click to expand...
Click to collapse
The binary file you are referring to is a result of a different recovery approach. You copy the hidden partition into a binary file and copy it back to its exact location on the hdd, later.
If you want to use my RAR file, you have to follow these instructions, to create an external boot media.
http://forum.xda-developers.com/showthread.php?t=393070
Thanks for the files. MyBackup.tib is not working(not able to download).
TRoN_1 said:
Thanks for the files. MyBackup.tib is not working(not able to download).
Click to expand...
Click to collapse
im not sure what the problem is in IE7. But with Opera and Firefox, the download works normal.(rightclick "save as")
I will try to see how I can fix it.
aquasesh said:
The binary file you are referring to is a result of a different recovery approach.
Click to expand...
Click to collapse
Not having access to a USB floppy, would anyone happen to have the binary file that is used with the dd method?
Thanks..
MyBackup.tib Slighty modified post-recovery Vista. Reg tweaks and Office 2007 (thanks to TokyoRob for providing the original)
Recovery_Partition_Content.rar I guess the file name is meaning enough (thanks to devictoria for the upload, i know it was painful)**FIXED**
Great files, thanks.
I can't download files above. The first one is about 278 MB long, corrupted after download. The second one is 0-length file. Would you please check it? Thank you for your time.
When I right-click and save as...
Internet Explorer cannot dowload MyBackup.tib.
The supplied HTTP header is invalid.
TRoN_1 said:
When I right-click and save as...
Internet Explorer cannot dowload MyBackup.tib.
The supplied HTTP header is invalid.
Click to expand...
Click to collapse
Please use Firefox or Opera to download it. I have some trouble with my
Server...but those browsers work
They also support resume, which is recommended with such large files.
@jposluns
you need a USB Stick, not a floppy. The image as well as the BIN file are about 3GB.
You can also burn the contents to a DVD if you make it bootable. I havent tried it yet, but should work.
aquasesh said:
you need a USB Stick, not a floppy. The image as well as the BIN file are about 3GB. You can also burn the contents to a DVD if you make it bootable. I havent tried it yet, but should work.
Click to expand...
Click to collapse
There is something critical that I'm missing here..
The instructions in the link you provided imply that the USB drive will be bootable, and that it is from there that the recovery will occur.
Your RAR file does not have an MBR, nor does it apparently have a tool to install one, so *something* would have to be used in order to install an MBR to the USB drive.
What is that *something* ?
Thanks..
jposluns said:
There is something critical that I'm missing here..
The instructions in the link you provided imply that the USB drive will be bootable, and that it is from there that the recovery will occur.
Your RAR file does not have an MBR, nor does it apparently have a tool to install one, so *something* would have to be used in order to install an MBR to the USB drive.
What is that *something* ?
Thanks..
Click to expand...
Click to collapse
To make it short, you have 3 choices.
Firstly, you wait until i create a bootable recovery ISO, which you can burn to a USB stick. (maybe on Friday, if I can make the time)
Secondly, you try to make one yourself.
Or, you simply download Acronis TI Home, install it on a PC, create a recovery bootdisk, which you can put on a USB stick and use Mybackup.tib from my ftp to restore the Shift.( I usually use this method, since I dont have to setup anything, and I have office 2007 integrated)
I will try to polish up the problems on my FTP coming weekend and add some more stuff, USB iso and so on.
If you can tell me what mechanism is used to make the MBR in the recovery partition, I can make an ISO myself.. I've tried a few different boot loaders, though none seem to work with the RAR contents.
Or.. If an Acronis image of JUST the MBR/Track0 for the recovery partition is available, that would be relatively simple too.
Worst case, I'll wait for your ISO.
Thanks for all your help!
jposluns said:
If you can tell me what mechanism is used to make the MBR in the recovery partition, I can make an ISO myself.. I've tried a few different boot loaders, though none seem to work with the RAR contents.
Or.. If an Acronis image of JUST the MBR/Track0 for the recovery partition is available, that would be relatively simple too.
Worst case, I'll wait for your ISO.
Thanks for all your help!
Click to expand...
Click to collapse
To make it a media bootable for a recovery, you need to use etfsboot.com
found in the folder /BOOT
Now, i have to find out which commandline parameter i have to use, which will take some trying out.
Worst case scenario, I can only make DVD bootable, but even that would be ok for most.
Working ISO.. Wish me luck..
I've just followed the instructions at http://www.mydigitallife.info/2007/05/10/how-to-make-vista-bootable-dvd-with-wim-downloaded-files/ to create an ISO file using the WIM files from your RAR.
UltraISO can then be used to image the ISO onto a USB stick (4Gb or greater).
I'm in the process of doing so right now and will test it tomorrow morning.
jposluns said:
I've just followed the instructions at http://www.mydigitallife.info/2007/05/10/how-to-make-vista-bootable-dvd-with-wim-downloaded-files/ to create an ISO file using the WIM files from your RAR.
UltraISO can then be used to image the ISO onto a USB stick (4Gb or greater).
I'm in the process of doing so right now and will test it tomorrow morning.
Click to expand...
Click to collapse
Looks like a good guide. Those seem like the right etfsboot parameters.
Im sure you can do it.
its basically the same way HTC does it, I guess the boot.wim contains the WindowsPE for the recovery.
Good Luck
Recovery Image was too big, please share it in eMule!
aquasesh said:
I finally got my ftp up and running. As promised, I have uploaded a slightly modified Vista backup for Acronis. It contains a preinstalled version of Office 2007. So, if you dont own Office 2007, please uninstall it
URL is https://phatpipez.homeftp.org/HTCShift
you will also find all the stuff i use on my shift, such as:
MyBackup.tib Slighty modified post-recovery Vista. Reg tweaks and Office 2007 (thanks to TokyoRob for providing the original)
Acronis True Image 11 Build 8053 Home.rar we all know this
MMSLite.bld265.CAB MMS addon, WM 5 and 6 for SOFTBANK ONLY
RealVGA_11.CAB gives you real VGA under SnapVue
ResPack128dpi.ARM.CAB resolution pack for RealVGA
Recovery_Partition_Content.rar I guess the file name is meaning enough (thanks to devictoria for the upload, i know it was painful)**FIXED**
TabletPC_PatchXPproSP2.exe TabletPC patch for a non WINXP SP2 installation, can be applied at any time. Tested with English version only.
UltraISO_Premium_Edition_v9.1.2.2465 can burn bootable image files to USB media
change_vista_language.iso Vista PE to change the language of any Vista installation, tested with HTC Shift.
Vista_x64_language_packs_links.html language pack needed for "change_vista_language.iso" (64bit)
Vista_x86_language_packs_links.html language pack needed for "change_vista_language.iso" (32bit)
WinMount.v2.2.2.rar tool to mount .WIM files. Such as XVISTA.WIM
hdat2iso_4_6b1.zip boot image to use Hdat2, tool for SETMAX address and unhide HPA
hsect-2.1win32.zip POF's very loved HTC SHIFT EMBEDDED CONTROLLER TOOL
ppxsetup2.rar PPXplorer for Windows Mobile. Good file commander.
testdisk-6.9.dos.zip tool to unhide the recovery partition
Update 07/05/2008:
HTC Shift XP Drivers.rar added the Windows XP drivers and Vitakey package by febelus (http://forum.xda-developers.com/showthread.php?t=386492)
The server is planned to be permanent, but only temporarily public. In one or 2 months, I will change the access to
ease my traffic. But until then, grab it while you can.
If anyone wants to add something (tools, different languages), please contact me for upload instructions. This ftp is planned to stay permanent.
Aquasesh
Click to expand...
Click to collapse
Hi aquasesh,
It is very difficult to download the recovery image with Firefox or IE, can you please share it in eMule, so that more Shift owners can download it share it.
Thanks in advance.
szjohnwong said:
Hi aquasesh,
It is very difficult to download the recovery image with Firefox or IE, can you please share it in eMule, so that more Shift owners can download it share it.
Thanks in advance.
Click to expand...
Click to collapse
I dont think sharing it in Emule is better than using Firefox.
I dont understand how it can be difficult to download it via a different
browser...Its just the same as IE
you just install opera or FF and rightclick the file you want...then choose "save as"....
Besides, sharing it in Emule is too slow, it will take ages to download it.
jposluns said:
I've just followed the instructions at http://www.mydigitallife.info/2007/05/10/how-to-make-vista-bootable-dvd-with-wim-downloaded-files/ to create an ISO file using the WIM files from your RAR. UltraISO can then be used to image the ISO onto a USB stick (4Gb or greater).
Click to expand...
Click to collapse
Update: An ISO was built, though when I imaged it to USB and booted off of it, an error of "can't find HP WIM files" resulted. I believe that the version of the <surrounding files exe> that I used was specific to HP, and there are a few more WIM files it's expecting. I've downloaded another variant and have it building an ISO now.
I installed Opera and when I right-click and save as, it downloads and says it saved the file. I did this 3 times in 3 different folders (I aborted once), but the files is nowhere to be found. In Opera under Transfers tab it says:
From https//phatpipez.homeftp.org
To D:\MyBackup.tib
Size 4.3 GB(4,576,253,952)
Transfered 4.3 GB(4,576,253,952)
The file is NOT there. I don't get it

Mac OS and HD2

Hi to everyone. I’m trying to upgrade my ROM but the file I’m downloading (Greek 1.48.482.4) is .exe and doesn’t work on my MacBook. (As most other .exe files that I've tried so far). Any suggestions? Thank you in advance!!
Forget it on a Mac. You have to install VMWare, Parallels or Bootcamp to install a Windows version on a Mac. Or use someone else's PC.
use emulation or boot camp
Hi there,
No exe file will ever launch on mac OS.
Many emulators allow mapping of USB ports, but i'd say you are likely to fail or get corrupted sooner or later (i.e brick your device because of some VM/ emulator failure).
The best way would be to use bootcamp and install XP on a small partition.
You may also try a live CD like BartXP (google is your friend)
Well, I may use a friend' s PC. Thank u for the immediate answers.
christav said:
Well, I may use a friend' s PC. Thank u for the immediate answers.
Click to expand...
Click to collapse
I like your wise alternative solution. Sometime things are not as complicated as they seem. Thank you for showing us the way.
I would reccomend against using emulation software for such an important task. For me I have a bootcamp partition of 7. I'm sure you can find a cheap copy of XP somewhere and install that (but i think 7 takes up less space!)
You will need to to the goldcard method I think and therefore install from your sd card.
You'll need a pc to extract the .nbh
If you have an Intel Mac, you might have luck with this.
I just checked, and the one ROM updater I tested (TUR_1.61.468.1) seemed to work fine running through Wine on my machine (iMac7,1 running Snow Leopard). I didn't flash over USB, but directly from MicroSD-card.
Here's what I did:
1) Download and Install Wine. I used this, which includes WineBottler.
2) After installing, run Wine.app.
3) You will get the opportunity to add a Prefix. This is the location on your drive that your virtual Windows system will be placed. Create it in any location you like, I create mine as 'WineDefault' in my user folder, so /Users/meptik/WineDefault/. This might take a minute.
4) Now find the ROM Updater you downloaded and right-click (or ctrl-click) on it, and Open With -> Wine.app.
5) When prompted, select 'Run directly in <prefix you just created>' and click Go. Installshield Wizard should run, click 'Next' and it should start extracting files.
6) Now, when the ROM Update Utility window appears, don't do anything.
7) Instead, head over to the Wine prefix you created earlier, and look in drive_c/windows/temp/. There should be some temporary folder here. Inside should be the files extracted by the ROM Updater, including RUU_signed.nbh.
This file, once renamed to LEOIMG.nbh, can be used to update your HD2 directly from your MicroSD-card. Follow this tutorial from step 6c.
so, in essence, using my Macbook and my HD2 means I'm a bit stuck for changing the ROM on the phone

Granted C:\ Access on Windows 10 Technical Preview for phones

PLEASE SEND THIS AS A FEEDBACK TO MS TOGETHER!
Well, it seems I don't have permission to post it to the development thread so I've got to post it here~
I found that on Windows 10 Technical Preview for phones, you could easily access C:\ in File Explorer.
All you have to do is to create a shortcut on your PC which links to C:\ then copy it to your phone.
Just click it in File Explorer on your Phone then you could see the files & folders in C:\, AND IT IS READ-ONLY.
However I failed to access D:\WPSystem using the same way, so I suppose it's just a bug. Don't know whether Microsoft will fix it in the next version.
See the attachments for screenshots.
And something interesting:
Found a folder named "Program Files(x86)", does that mean there will be x64 support for Windows 10?
Hey, Nice Findings, Nice Research !
I Like It
Interesting.
probably no x86 64bit support, as windows Phone runs on arm (until x86 based processors become standard in phones)

Categories

Resources