Related
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
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
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
Does anyone know if Microsoft has or plans to release a copy of minesweeper for windows 8?
2momo123 said:
Hello All-
Just updated to Windows 8 Build 8400 from Vista. I was wondering, is there a way to get the vista minesweeper to run in windows 8?
I was able to find variants of the XP build that run, but those don't keep detailed scoring like the vista version. I also tried copying the files from vista over, but they don't run. I also tried some variants of the game developed others, and they run nicely, but my vision is bad and none of them allow the full screen mode that vista did.
Click to expand...
Click to collapse
this may seem a simple idea but you have checked there are no registry keys for the game? I know its a simple game but you never know I will have a look myself in a bit and have a play but tbh i don't have much time so can't promise much (4 kids = no me time)
lumpaywk said:
this may seem a simple idea but you have checked there are no registry keys for the game? I know its a simple game but you never know I will have a look myself in a bit and have a play but tbh i don't have much time so can't promise much (4 kids = no me time)
Click to expand...
Click to collapse
I didn't see any, but to be honest im new to Windows in general (I have primarily used both Linux and OSX). So if you could have a quick look when you get a chance, it would be GREATLY appreciated! Thanks!
There is a way to run Windows 7 games in Windows 8. I found it in another forum:
1. Please use x86 games for Windows 8 x86 & x64 games for Windows 8 x64. Otherwise the patch will not work.
2. Copy 'Program Files\Microsoft Games' folder from the x86/x64 install.wim or a working x86/x64 installation.
3. Paste it in 'Program Files'.
4. Copy 'cardgames.dll' from system32 of a x86/x64 install.wim or a working x86/x64 installation.
5. Paste it in 'FreeCell', 'Hearts', 'Solitaire' & 'SpiderSolitaire' folder.
6. Apply the patch.
7. Done.
**For multiplayer games (Backgammon, Checkers & Spades)**
1. Copy cmncliM.dll & zgmprxy.dll from system32 & paste them in system32 of 8.
2. Copy cmncliM.dll.mui from system32\xx-xx & paste it in system32\xx-xx of 8. (xx-xx represents your os language; for me its en-us)
Patch:
http://rghost.net/users/Tito6/releases/Microsoft-Games-Patcher
gururoop said:
There is a way to run Windows 7 games in Windows 8. I found it in another forum:
1. Please use x86 games for Windows 8 x86 & x64 games for Windows 8 x64. Otherwise the patch will not work.
2. Copy 'Program Files\Microsoft Games' folder from the x86/x64 install.wim or a working x86/x64 installation.
3. Paste it in 'Program Files'.
4. Copy 'cardgames.dll' from system32 of a x86/x64 install.wim or a working x86/x64 installation.
5. Paste it in 'FreeCell', 'Hearts', 'Solitaire' & 'SpiderSolitaire' folder.
6. Apply the patch.
7. Done.
**For multiplayer games (Backgammon, Checkers & Spades)**
1. Copy cmncliM.dll & zgmprxy.dll from system32 & paste them in system32 of 8.
2. Copy cmncliM.dll.mui from system32\xx-xx & paste it in system32\xx-xx of 8. (xx-xx represents your os language; for me its en-us)
Patch:
http://rghost.net/users/Tito6/releases/Microsoft-Games-Patcher
Click to expand...
Click to collapse
cool!!
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