bat Ϸ Ȥ ȭ,,ٿε D̺ Ҽ ֳ ??

   
   ȸ 1623   õ 0    

안녕하세요~! 

제가 일하는중에 전 이거 이동 윈도우 아이콘 우클릭해서 할수있는데 

이게 저 말고 다른 사용자분들이 매번 전화로 물어봐서 일이이 전부 해주기는 너무 힘들어서 

bat 파일 찾아보고 있고 제가 나름 허접한 실력으로 만들어 보려고 했다가 

일주일째 무성과 의미 없이 시간만 흘러서요 

혹시 bat파일로 위 폴더3개 D드라이브로 경로 이동하게 할수있는 방법 아시면 알려주실수 있을까요 ??

ª ϼ ϰ.
2023-12
..

GPT ֳ׿.. ..

@echo off
setlocal

rem ȭ D ̺ η ̵
move "%USERPROFILE%\Desktop" "D:\NewDesktop" /Y

rem D ̺ η ̵
move "%USERPROFILE%\Documents" "D:\NewDocuments" /Y

rem ٿε D ̺ η ̵
move "%USERPROFILE%\Downloads" "D:\NewDownloads" /Y

endlocal

=================================
ϼ..
     
2023-12
.. move ɾ ׳ / ű ɾ.. ״ 빰 ű ٵ.
찡 νϴ ȭ, , ٿε ⺻ ġ ƴ D:̺ ϰ ôٴ ...
          
2023-12
~!! ְ  ׷ ״ ϽŰ ¾ƿ!!
     
2023-12
亯 մϴ ѹ غ~!!
     
2023-12
ܼ ̵ ̳׿.. GPT ׷ ׷..
          
dateno1 2023-12
̻ϰ ؼϴ
sbg2005 2023-12
@echo off

setlocal

set NEW_DOWNLOADS_PATH=D:\Downloads

if not exist "%NEW_DOWNLOADS_PATH%" mkdir "%NEW_DOWNLOADS_PATH%"

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{374DE290-123F-4565-9164-39C4925E467B}" /t REG_EXPAND_SZ /d "%NEW_DOWNLOADS_PATH%" /f

echo The Downloads folder has been moved to %NEW_DOWNLOADS_PATH%

pause

endlocal
     
sbg2005 2023-12
@echo off

setlocal

set NEW_DOCUMENTS_PATH=D:\Documents

if not exist "%NEW_DOCUMENTS_PATH%" mkdir "%NEW_DOCUMENTS_PATH%"

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Personal" /t REG_EXPAND_SZ /d "%NEW_DOCUMENTS_PATH%" /f

echo The Downloads folder has been moved to %NEW_DOWNLOADS_PATH%

pause

endlocal
          
sbg2005 2023-12
@echo off

setlocal

set NEW_DESKTOP_PATH=D:\Desktop

if not exist "%NEW_DESKTOP_PATH%" mkdir "%NEW_DESKTOP_PATH%"

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Desktop" /t REG_EXPAND_SZ /d "%NEW_DESKTOP_PATH%" /f

echo The Desktop folder has been moved to %NEW_DESKTOP_PATH%

pause

endlocal
sbg2005 2023-12
ø ƽð 3 ĵ ˴ϴ.

D ̺ Ү ǥ ٲٽ÷ set NEW_OOOO_PATH= ڿ ϴ ñ.

Reg ̴ϸŭ ٷ ϴ° ̴ϴ.
     
2023-12
~! ѹ غ~!
sbg2005 2023-12
@echo off
setlocal

:prompt
echo WARNING: This script will change the location of a 'Desktop', 'My Documents', 'Downloads' to custom destination and reboot your system.
echo Do you want to continue? (Y/N)
set /p USERINPUT=Type Y to continue or N to abort:

if /I "%USERINPUT%"=="Y" goto proceed
if /I "%USERINPUT%"=="N" goto abort
echo Invalid input. Please type Y or N.
goto prompt

:changeFolder
set FOLDER_NAME=%1
set FOLDER_PATH=%2
set FOLDER_KEY=%3

if not exist "%FOLDER_PATH%" mkdir "%FOLDER_PATH%"

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "%FOLDER_KEY%" /t REG_EXPAND_SZ /d "%FOLDER_PATH%" /f
echo %FOLDER_NAME% folder has been moved to %FOLDER_PATH%.
goto end

:proceed
call :changeFolder "Downloads" "D:\Downloads" "{374DE290-123F-4565-9164-39C4925E467B}"

call :changeFolder "My Documents" "D:\Documents" "Personal"

call :changeFolder "Desktop" "D:\Desktop" "Desktop"

echo Your system will reboot witnin 5sec to apply changes.
shutdown /r /t 5
goto end

:abort
echo Operation aborted by the user.
goto end

:end
endlocal
     
sbg2005 2023-12
̰ 3 Ѳ ģ̴ϴ.

ɰŶ ǰ, 5 ȿ Դϴ.
1 2023-12
մϴ.
Ȥ Ӽ  ϴµ ϰ ѹ Ҽְڳ׿
۾ ٲٰ ѱ۷ ȳ ϰ ز ߽ϴ.

setlocal
 color  f4
:prompt
echo WARNING: This script will change the location of a 'Desktop', 'My Documents', 'Downloads' to custom destination and reboot your system. ,ٿε,ȭ C̺꿡 D̺ մϴ.  ڵ ˴ϴ.
echo Do you want to continue? Ͻø Y ġø  N ϼ (Y/N)


QnA
Page 178/5687
2015-12   1532647   ް
2014-05   4996728   1
06-12   1364   dateno1
2023-01   1364   ٶ
2022-08   1364   niimbot
05-20   1364   ¯¯
2022-11   1364   ູϼ
07-02   1364  
2022-04   1365   νȫö
2023-03   1365   osthek83
2022-04   1365   meviesta
2023-03   1365  
2021-12   1365   ǹ̡
2023-11   1365  
2023-12   1365  
2023-03   1365   ڶƮ
05-22   1365   kosup
08-19   1365  
2023-12   1365   ClubMJ
07-08   1365   õǻ
07-27   1365  
2023-07   1366   ȭ