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

   
   ȸ 1616   õ 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 177/5686
2015-12   1523144   ް
2014-05   4987177   1
06-05   1354  
07-08   1354   õǻ
2022-01   1355   гʺθ
2023-06   1355   ٺ
07-25   1355   Ǵ
06-18   1355   ocm10gr2
04-08   1355   ̴
2023-08   1355   ̹
2022-03   1355  
02-18   1355   ȸ2
2022-01   1355  
2022-04   1355   ̼
2022-10   1355   ູϼ
05-03   1355   galaxyfamily
01-25   1355  
2022-08   1356   ſ켷
02-25   1356   ȣ5
06-12   1356   ¯¯
2022-09   1356  
07-12   1356   Ǯεý