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

   Á¶È¸ 1596   Ãßõ 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 176/5686
2014-05   4972693   Á¤ÀºÁØ1
2015-12   1508994   ¹é¸Þ°¡
2013-08   14232   ÀÓ½ÃÇö
2002-08   14231   ±è¿ìÅÃ
2015-01   14231   ¼öÇÊó·³
2002-07   14227   Á¤ÀºÁØ
2002-08   14226   ±èÇѱ¸
2019-04   14225   ½ÅÀº¿Ö
2016-07   14224   º´¸ÀÆù
2002-07   14221   Á¤»ó¿ë
2002-07   14219   ¼Û°æ¹Î
2002-06   14218   ±èÁö¼º
2002-07   14218   ±èÇüÇÊ
2002-07   14217   Çѽ¸ñ
2002-07   14216   ±è¿ì¼º
2002-07   14215   °­Çüä
2002-07   14215   ±è¿ë¼ö
2002-08   14213   Â÷Æò¼®
2013-05   14212   akfalles
2002-07   14210   ¹ÚÁ¾ÀÍ
2002-08   14209   °­±¤¼±
2016-11   14208   ĸƾ¾Æ¸Þ¸®Ä«³ë