질문과 답변

윈 도 우 무순 스크립트 인가요? 단순 메일 설치는 아닌거 같고

2016.05.19 19:59

지룡자 조회:820

@echo off

if not exist "%Systemdrive%\Program Files\Windows Mail" GOTO:END
REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName | findstr /i "(R)" >nul
IF NOT ERRORLEVEL 1 GOTO:END
REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName | findstr /i "Vista" >nul
IF NOT ERRORLEVEL 1 GOTO:END

:INSTALL
echo Windows Mail Installing
echo Please wait...
echo.

if exist %Windir%\SysWOW64\cmd.exe GOTO:64

:32
if exist "%Systemdrive%\Program Files\Internet Explorer" takeown /f "%Systemdrive%\Program Files\Internet Explorer" /r /d y >nul & icacls "%Systemdrive%\Program Files\Internet Explorer" /t /grant everyone:f >nul
if exist "%Systemdrive%\Program Files\Windows Calendar"  takeown /f "%Systemdrive%\Program Files\Windows Calendar"  /r /d y >nul & icacls "%Systemdrive%\Program Files\Windows Calendar"  /t /grant everyone:f >nul
if exist "%Systemdrive%\Program Files\Windows Mail"      takeown /f "%Systemdrive%\Program Files\Windows Mail"      /r /d y >nul & icacls "%Systemdrive%\Program Files\Windows Mail"      /t /grant everyone:f >nul

xcopy "data\Windows_Mail\x86\Internet Explorer" "%Systemdrive%\Program Files\Internet Explorer" /cheriky >nul
xcopy "data\Windows_Mail\x86\Windows Calendar"  "%Systemdrive%\Program Files\Windows Calendar"  /cheriky >nul
xcopy "data\Windows_Mail\x86\Windows Mail"      "%Systemdrive%\Program Files\Windows Mail"      /cheriky >nul

call %Windir%\System32\regedt32.exe /s "data\Windows_Mail\Mailx86.reg"

if exist "%Systemdrive%\Users\%username%\Desktop" (GOTO:UNAME) else (GOTO:UADM)
GOTO:END

:64
if exist "%Systemdrive%\Program Files\Internet Explorer" takeown /f "%Systemdrive%\Program Files\Internet Explorer" /r /d y >nul & icacls "%Systemdrive%\Program Files\Internet Explorer" /t /grant everyone:f >nul
if exist "%Systemdrive%\Program Files\Windows Calendar"  takeown /f "%Systemdrive%\Program Files\Windows Calendar"  /r /d y >nul & icacls "%Systemdrive%\Program Files\Windows Calendar"  /t /grant everyone:f >nul
if exist "%Systemdrive%\Program Files\Windows Mail"      takeown /f "%Systemdrive%\Program Files\Windows Mail"      /r /d y >nul & icacls "%Systemdrive%\Program Files\Windows Mail"      /t /grant everyone:f >nul

if exist "%Systemdrive%\Program Files (x86)\Internet Explorer" takeown /f "%Systemdrive%\Program Files (x86)\Internet Explorer" /r /d y >nul & icacls "%Systemdrive%\Program Files (x86)\Internet Explorer" /t /grant everyone:f >nul
if exist "%Systemdrive%\Program Files (x86)\Windows Calendar"  takeown /f "%Systemdrive%\Program Files (x86)\Windows Calendar"  /r /d y >nul & icacls "%Systemdrive%\Program Files (x86)\Windows Calendar"  /t /grant everyone:f >nul
if exist "%Systemdrive%\Program Files (x86)\Windows Mail"      takeown /f "%Systemdrive%\Program Files (x86)\Windows Mail"      /r /d y >nul & icacls "%Systemdrive%\Program Files (x86)\Windows Mail"      /t /grant everyone:f >nul

xcopy "data\Windows_Mail\x64\Internet Explorer" "%Systemdrive%\Program Files\Internet Explorer" /cheriky >nul
xcopy "data\Windows_Mail\x64\Windows Calendar"  "%Systemdrive%\Program Files\Windows Calendar"  /cheriky >nul
xcopy "data\Windows_Mail\x64\Windows Mail"      "%Systemdrive%\Program Files\Windows Mail"      /cheriky >nul

xcopy "data\Windows_Mail\x86\Internet Explorer" "%Systemdrive%\Program Files (x86)\Internet Explorer" /cheriky >nul
xcopy "data\Windows_Mail\x86\Windows Calendar"  "%Systemdrive%\Program Files (x86)\Windows Calendar"  /cheriky >nul
xcopy "data\Windows_Mail\x86\Windows Mail"      "%Systemdrive%\Program Files (x86)\Windows Mail"      /cheriky >nul

call %Windir%\System32\regedt32.exe /s "data\Windows_Mail\Mailx64.reg"
REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName | findstr /i "R2" >nul
IF NOT ERRORLEVEL 1 call %Windir%\System32\regedt32.exe /s "data\Windows_Mail\InprocServer32.reg"

if exist "%Systemdrive%\Users\%username%\Desktop" (GOTO:UNAME) else (GOTO:UADM)

:UNAME
copy /y "data\Windows_Mail\Windows Mail.lnk"     "%Systemdrive%\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows Mail.lnk" >nul
copy /y "data\Windows_Mail\Windows Calendar.lnk" "%Systemdrive%\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows Calendar.lnk" >nul
copy /y "data\Windows_Mail\Windows Contacts.lnk" "%Systemdrive%\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows Contacts.lnk" >nul
GOTO:END

:UADM
xcopy "data\Windows_Mail" "C:\Windows_Mail" /cheriky >nul
copy /y "data\Windows_Mail\Windows_Mail.cmd" "C:\Windows_Mail.cmd" >nul
GOTO:END

:END
EXIT /B






번호 제목 글쓴이 조회 등록일
[공지] 질문과 답변 게시판 이용간 유의사항 gooddew - -
63757 소프트웨어| VMware Map Virtual Disk 위치를 사용할수 없습니다 오류 [2] 할배장 920 05-20
63756 기 타| 데이터용 4테라 하드디스크 문의입니다. [4] 크카카 1038 05-20
63755 윈 도 우| 브라우저 루트인증서 오류 [4] 아라한과 771 05-20
63754 윈 도 우| 콜레오 님~~~ [1] 57컴 1280 05-20
63753 윈 도 우| 디 하드디스크 포맷하는 방법좀 가르쳐 주세요 [3] 불만왕투덜이 1455 05-20
63752 하드웨어| 애플 랩탑은 메모리 업그레이드가 안되는지요? [1] joe 778 05-20
63751 윈 도 우| 윈도우 10 작업표시줄에 볼륨조절이 사라졋어요 ㅠㅠ [3] Attack 1168 05-20
63750 윈 도 우| 특정 업데이트 삭제 및 숨기기 스크립트 [1] 컨피그 861 05-19
» 윈 도 우| 무순 스크립트 인가요? 단순 메일 설치는 아닌거 같고 [3] 지룡자 820 05-19
63748 윈 도 우| 윈도우 업데이트 숨기기 명령어 있나요??? [4] 마성의남자 1067 05-19
63747 윈 도 우| Win 7 Pro x64 업데이트 winver 질문입니다. [5] 파풍초 752 05-19
63746 소프트웨어| 엑셀2013입니다. 프로그램으로 명령을 전송하는데 문제가 ... [5] 이코누 1156 05-19
63745 윈 도 우| PE부팅후 자동어플실행시 배경화면바꿀수잇나요 [2] 연고 686 05-19
63744 윈 도 우| i5 6세대 삼성 노트북 리커버리 관련 .. [2] 순검 1783 05-19
63743 윈 도 우| Windows 파일에서 운영체제 확인?? [2] 펨토 621 05-19
63742 하드웨어| 부팅시 메인보드 로고 후 [2] 개골동자 1167 05-19
63741 소프트웨어| 다중 하드디스크 복제 프로그램이 있나요? [4] ksire 1585 05-19
63740 윈 도 우| 윈도우 7 라이센스 초기화 횟수 늘이는 프로그램 있을까요? [2] 벨루가 1350 05-19
63739 윈 도 우| RSImagex 2.35 이미지 풀때.. [2] 씻으면이정 784 05-19
63738 소프트웨어| vhd man 자식 [2] 1992 717 05-19
XE1.11.6 Layout1.4.8