bat ÆÄÀϷΠȤ½Ã ¹ÙÅÁÈ­¸é,³»¹®¼­,´Ù¿î·Îµå Æú´õ Dµå¶óÀ̺ê·Î °æ·Î º¯°æ ÇÒ¼ö ÀÖ³ª¿ä ??

   Á¶È¸ 1687   Ãßõ 0    

안녕하세요~! 

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

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

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

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

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

ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
¼ÅÇÃ..

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

=================================
Âü°í Çϼ¼¿ä..
     
¾î.. move ¸í·É¾î´Â ±×³É ÆÄÀÏ/Æú´õ¸¦ ¿Å±â´Â ¸í·É¾î¶ó.. ¸» ±×´ë·Î ³»¿ë¹°À» ¿Å±â´Â °á°ú°¡ µÉÅÙµ¥¿ä.
º»¹® Áú¹®³»¿ëÀº À©µµ¿ì°¡ ÀνÄÇÏ´Â ¹ÙÅÁÈ­¸é, ¹®¼­, ´Ù¿î·Îµå Æú´õ¸¦ ±âº» À§Ä¡°¡ ¾Æ´Ñ D:µå¶óÀ̺ê·Î ÁöÁ¤À» ÇÏ°í ½ÍÀ¸½Ã´Ù´Â °Å °°Àºµ¥...
          
¿µ°¨´Ô 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 184/5693
2014-05   5021131   Á¤ÀºÁØ1
2015-12   1556470   ¹é¸Þ°¡
2013-02   10464   ½ÅÁؼ·
2014-09   4136   ºñÁµå
2013-03   4916   song05
2016-12   3822   insert
2019-04   5939   ¿¥ºê¸®¿À
2020-06   6381   U3164
2023-06   1887   °í±â¹æÆÐ
2013-03   6864   xkernel
2020-07   2632   »ßµ¹À̽½ÇÄÀÌ
2014-10   6080   ¶Ñ¶Ñ±è´ë¿ø
2010-03   7276   ¹Ì³î»ç¶û
2014-10   8580   ¼ÛÁÖȯ
2020-07   5412   VSPress
2021-12   1385   ³×ÀÌÃÄ
2010-03   7335   ±èÈ¿¼ö
2018-03   7608   ¾çâ±Ç
2013-04   10940   ÀÓÁ¾±Õ
2018-03   4113   Æ丣¼¼¿ì½º
2023-07   2137   ÄÚÄí
2013-05   14530   ½Å°ü¾Ç»ê