Related
Hi there, I'm having trouble installing programs that seem to come in loads of separate files. One of them is an XML file and the rest seem to be unopenable/unrecognisable by windows.
Can anyone give me advice on how to install these onto my MPV3100. I've search for Install help but there doesn't seem to be anything specific on how to do it.
Thanks.
wingzero124 said:
Hi there, I'm having trouble installing programs that seem to come in loads of separate files. One of them is an XML file and the rest seem to be unopenable/unrecognisable by windows.
Can anyone give me advice on how to install these onto my MPV3100. I've search for Install help but there doesn't seem to be anything specific on how to do it.
Thanks.
Click to expand...
Click to collapse
I can't be sure but it sounds like you have decompressed a .cab file on your PC before trying to place it on your device. If so that's not the way to do it.
There are in general threetypes of programme/files you can download for WM5
1. ,cab files
2. .exe files
3. .zip files
.cab files you place directly on the device by connecting via active sync using the Explore button on the PC active sync screen. If you have a storage card inserted navigate to that and drop them in there. To run a Cab file just click on it on your device.
.exe files in the main you run on your PC whilst connected via active sync. The programme will automatically instal the programme on the device. Keep an eye on the device there maybe some taps you have to make.
.Zip files in general you extract these on the PC and then you'll see if they are .cabs or .exes and then treat them as above.
Most programmes will then show up under the Start>Programmes listing on the device and you run them from there. Some though may not especially if you chose to install them to storage card. In which case use file explorer programme to navigate to them.
Ultimately you'll want a programme that allows you to create short cuts to them probably on the desktop screen.
Hope this helps
Mike
Someone can help me? I have Tom_B_B_v4[2].0_TouchFlo_Professional installed on my Artemis, and activesync 4.5 on laptop.
Is impossible to transfer files from device to laptop. It is possible only from laptop to Artemis. What can i do?
Many thanks!
if the files are located in the my doc dir then they should be mirroed onto the
my pda documents inside the my documents on the pc
otherwise one can use explore device
in activesync on the pc and copy the cab file
and paste it where one would wish on the pc
does'nt works.
Does'n work. This is the problem: if I try to copy a file (for example a Mp3) located everywere (internal or sd memory) in the pda, and paste in the laptop (desktop or folder), it seems than start copying file, but really does'nt.
(Sorry for my english)
coccobabbo said:
Does'n work. This is the problem: if I try to copy a file (for example a Mp3) located everywere (internal or sd memory) in the pda, and paste in the laptop (desktop or folder), it seems than start copying file, but really does'nt.
(Sorry for my english)
Click to expand...
Click to collapse
sounds like a firewall (windows file sharing problem) try and run a network wizard on the pc and make sure you can share your C drive.
give it a go it should work.
neilhhardy said:
sounds like a firewall (windows file sharing problem) try and run a network wizard on the pc and make sure you can share your C drive.
give it a go it should work.
Click to expand...
Click to collapse
I think is a problem of activesync 4.5. I read the guide online and in "transfer files" is written "does'nt work with all devices" (is written in Italian, I think this is the traslation)
solved?
I solved temporarily in this way:
On Activesync activate tranfer files, automatically create on desktop folder "my documents" where is possible manage files.
Then I installed "cardexport-wm5" on device. With this program is possible to switch usb connection to Actyvesinc or Cardexport; in this case the memory card is recognized by PC like an external USB drive. Is'nt so easy, but I do'nt realize still better.
However, I'm looking for a solution for this problem, and I am available to share my experiences, in this moment I think that is a bug of activesync 4.5. So, ask for administrators if possible open a topic for this problem.
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 all,
Just wondering if anybody could shed light on the following scenario:
When I connect my HD to my PC using windows mobile device center and successfully sync, i then navigate to a windows explorer tab and open up my storage card. I can then browse files, copy and paste, rename etc, however, i can not edit word files. When i open up a word file on my device via my pc it is locked as read only. The only way to be able to edit such files is to disconnect, and then reconnect my device, but in disk drive mode.
Does anybody know if i can edit my files and use activesync at the same time?
Thank you very much for your time
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