강좌 / 팁

윈 도 우 자료 mover(파일 첨부)

2020.01.16 17:15

레마클로 조회:2550 추천:20

 

 

set ATTR=%~a1

set DIRATTR=%ATTR:~0,1%

if /I "%DIRATTR%"=="d" goto :fold  

goto :file

 

위 배치파일은

드래그 앤 드롭한 개체가

파일인지, 폴더인지 구분해내는 역할입니다.

 

저는 배치파일의 고수도 아니고(문법도 그때그때 찾아보는 수준),

vbs의 고수도 아니고,

프로그래머도 아닙니다.

 

영세한(?) 컴퓨터가게 주인이었죠.

식당과 함께 투잡하려니 시간에 항상 쫓기는 경우가 많았습니다.

 

빠른 AS가 필요했고, 수명(?) 긴 OS를 깔아 주어야 했습니다.

 

그래서 탄생하게된게 "원클릭 테스트페이지 인쇄"였고

그후 "시간 절약 도구"들을 계속 개발 했던겁니다.

 

고수가 못되는 저는

<구글링+꼼수>로 시간을 절약하기 위해 시간을 투자했습니다.

 

그렇게 해서 나왔던 결과물 들을 전부는 아니어도 모두 다 공개 해 보려고 하는겁니다.

 

저는 꼼수쟁이에 불과 합니다.

업자 여러분들에게 도움이 되었으면 하는 바램입니다.

 

자료 mover = fastcopy + claunch + 파일,폴더 구분 배치파일

 

3가지를 조합(꼼수를 부려) 자료백업기를 만들었었습니다.

 

 

 

 

 

final-EFcopy.bat(더블클릭으로 실행하는 용도가 아닙니다)

 

스크립트 시작

 

@echo off

color F3

mode con cols=28 lines=3

 

SETLOCAL ENABLEEXTENSIONS

pushd "%~dp0"

 

if "%PROCESSOR_ARCHITECTURE%%PROCESSOR_ARCHITEW6432%" == "x86" (set FastCopy=FastCopy) else (set FastCopy=FastCopy64)

 

set "WWW=#_자료백업#"

if exist d:\%WWW% set mypath=d:&goto :daum

if exist e:\%WWW% set mypath=e:&goto :daum

if exist f:\%WWW% set mypath=f:&goto :daum

if exist g:\%WWW% set mypath=g:&goto :daum

if exist h:\%WWW% set mypath=h:&goto :daum

if exist i:\%WWW% set mypath=i:&goto :daum

if exist j:\%WWW% set mypath=j:&goto :daum

if exist k:\%WWW% set mypath=k:&goto :daum

if exist l:\%WWW% set mypath=l:&goto :daum

if exist m:\%WWW% set mypath=m:&goto :daum

if exist n:\%WWW% set mypath=n:&goto :daum

if exist o:\%WWW% set mypath=o:&goto :daum

if exist p:\%WWW% set mypath=p:&goto :daum

if exist q:\%WWW% set mypath=q:&goto :daum

if exist r:\%WWW% set mypath=r:&goto :daum

if exist s:\%WWW% set mypath=s:&goto :daum

if exist t:\%WWW% set mypath=t:&goto :daum

if exist v:\%WWW% set mypath=v:&goto :daum

if exist w:\%WWW% set mypath=w:&goto :daum

if exist z:\%WWW% set mypath=z:&goto :daum

 

:daum

 

set ATTR=%~a1

set DIRATTR=%ATTR:~0,1%

if /I "%DIRATTR%"=="d" goto :fold  

goto :file

 

 

:fold

start %fastcopy%.exe /cmd=move /auto_close /force_start /estimate %1\ /to="%mypath%\%WWW%\"

goto :fc

 

:file

start %fastcopy%.exe /cmd=move /auto_close /force_start /estimate %1 /to="%mypath%\%WWW%"

 

:fc

del FastCopy.ini

del FastCopy.log

 

:eof

 

스크립트 끝

 

 

폴더확인.bat

 

스크립트 시작

 

@echo off

color F3

mode con cols=28 lines=3

pushd "%~dp0"

 

:caum

set WWW=

set mypath=

 

set "WWW=#_자료백업#"

if exist d:\%WWW% set mypath=d:&goto :daum

if exist e:\%WWW% set mypath=e:&goto :daum

if exist f:\%WWW% set mypath=f:&goto :daum

if exist g:\%WWW% set mypath=g:&goto :daum

if exist h:\%WWW% set mypath=h:&goto :daum

if exist i:\%WWW% set mypath=i:&goto :daum

if exist j:\%WWW% set mypath=j:&goto :daum

if exist k:\%WWW% set mypath=k:&goto :daum

if exist l:\%WWW% set mypath=l:&goto :daum

if exist m:\%WWW% set mypath=m:&goto :daum

if exist n:\%WWW% set mypath=n:&goto :daum

if exist o:\%WWW% set mypath=o:&goto :daum

if exist p:\%WWW% set mypath=p:&goto :daum

if exist q:\%WWW% set mypath=q:&goto :daum

if exist r:\%WWW% set mypath=r:&goto :daum

if exist s:\%WWW% set mypath=s:&goto :daum

if exist t:\%WWW% set mypath=t:&goto :daum

if exist v:\%WWW% set mypath=v:&goto :daum

if exist w:\%WWW% set mypath=w:&goto :daum

if exist z:\%WWW% set mypath=z:&goto :daum

 

 

:daum

if exist "%mypath%\%WWW%" goto :far

cls

mkdir d:\%WWW%

goto :caum

 

:far

explorer "%mypath%\%WWW%"

 

:eof

 

스크립트 끝

 

 

먼저 "백업폴더 확인"을 눌러 확인 후 백업 작업을 하시기 바랍니다.(d:\#_자료백업#)

 

배치파일이 좀 조잡합니다.

fastcopy는 최신버전 아닙니다.

 

MV.png

 

 

 

 

 

 

 

 

 

 

 

번호 제목 글쓴이 조회 추천 등록일
[공지] 강좌 작성간 참고해주세요 gooddew - - -
1856 윈 도 우| _Launch.exe 를 PE 에 적용해보기 [14] 지후빠 2025 22 04-15
1855 윈 도 우| Internet Explorer 11 강제 실행 [15] 무월 2653 22 06-10
1854 윈 도 우| Windows 10 을 upgrade 없이 설치하고 단박에 인증 ! [38] kwoods 27076 21 09-05
1853 윈 도 우| WinPE 한글화 관련(2) [19] sunshine 2730 21 02-25
1852 윈 도 우| DISM++ 를 이용해서 윈도우 10 설치하기 [18] gooddew 4050 21 06-07
1851 윈 도 우| 가상드라이버 만들기[VHD] [12] 간장종지646 2402 21 09-11
1850 윈 도 우| 윈도우 설치전 데이터 손실방지 하기! [7] 무월 1658 21 01-29
1849 윈 도 우| NotePad 파일연결 레지스트리입니다. [12] PC_Clinic 1428 21 01-04
1848 윈 도 우| Clinic PE의 wim 파일 업데이트하기 [9] PC_Clinic 2129 21 01-23
1847 윈 도 우| 탐색기에서 드라이브 숨기기 보이기 배치파일 [23] 지후빠 1889 21 01-30
1846 윈 도 우| 윈도우10/11 무인설치 응답파일 선택 설치 [7] 무월 3410 21 07-28
1845 윈 도 우| Auto Wim Make (만능윔 제작 방법) 7부 마지막 [32] 메인보드 2878 20 03-20
1844 윈 도 우| 배치파일 관리자 계정으로 실행하는 방법들 [15] 지후빠 1978 20 03-05
» 윈 도 우| 자료 mover(파일 첨부) [11] 레마클로 2550 20 01-16
1842 윈 도 우| install.WIM 무인설치 응답파일 교체 방법! [11] 무월 2343 20 07-23
1841 윈 도 우| 멀티부팅부터 Wimboot 만들기까지 (1부) [10] maniaa 2123 20 10-02
1840 윈 도 우| 강제로 Internet Explorer 열기 스크립트 [13] 사랑이7 2858 20 02-05
1839 윈 도 우| [배치파일포함]윈도우 10에서 부팅 관리자를 원클릭으로 변... [5] 복원솔루션 3326 20 05-17
1838 윈 도 우| 가끔쓰는 도스 명령어 대신 메뉴로 관리하자(BAT포함) [8] 멀더는외계 2143 20 03-31
1837 윈 도 우| 윈도우11에서 반디집 7.2x 버전 포함하여 봉인하기! [14] 무월 3827 20 11-15
XE1.11.6 Layout1.4.8