📜 ⬆️ ⬇️

Transfer documents and settings to another drive

In users, as Umputun says, the most popular operating system has already entered into the tradition of splitting data and system files across hard disk partitions. However, it already happened that the default folder for Windows XP users is located on the system partition and often you have to use all sorts of tricks to move it to a more convenient place, and ideally also remove spaces from its name.
I understand that all advanced peppers are already using beta 7 and Vista, and even more advanced mac and nix with all variations on this topic. Still, I want to note that XP has for us a long time its problems with it.

I want to share my solution to this trouble. It’s not a pity, but I don’t have one solution yet, so the procedure consists of the following steps:

1.1 , «» ;
1.2 - ;
2. c:\Documents and settings d:\User s «»;
3. .


I have an automatic solution to only the last step, and the console utility helps me with this: Regfind.exe. Included in the Windows Server Resource Kit Tools.
A bach script is used to work with it. as follows:
')
REM
SET from_drive=c
SET from_path=Documents and Settings

REM
SET to_drive=d
SET to_path=Users

REM , %SystemDrive%
regfind.exe "%%SystemDrive%%\%from_path%" -r %to_drive%:\%to_path%

REM ,
regfind.exe "%from_drive%:\%from_path%" -r %to_drive%:\%to_path%

REM ,
regfind.exe %from_drive%:\DOCUME~1 -r %to_drive%:\%to_path%


Packaging with the tool here: nip.zworld.ru/habra/dnsmover.zip (29.3 kb)

ZY A direct link to the Windows Server Resource Kit Tools or to regfind.exe itself will be happy to accept a gift for posting to the article.

Source: https://habr.com/ru/post/50607/


All Articles