<div> <div style="text-align:left;">연인이 없어 배경화면에 사랑 사진을 하지 못하기도 하고, 그 퍼렁 윈도우 창문 배경화면이 질린 참에 어쩌다 만들어보았습니다.</div> <div style="text-align:left;"><br></div> <div style="text-align:left;"><img width="800" height="479" class="chimg_photo" style="border:medium;" alt="Lock Screen.PNG" src="http://thimg.todayhumor.co.kr/upfile/201706/149755809284c51e98d18d4d58abcc64ced9c05c29__mn731301__w1282__h768__f81770__Ym201706.png" filesize="81770"></div> <div style="text-align:left;"><img width="718" height="213" style="border:medium;" alt="Widows Spotlight.PNG" src="http://thimg.todayhumor.co.kr/upfile/201706/14975580945e41cf41062345ffa375c979e92d0353__mn731301__w718__h213__f27334__Ym201706.png" filesize="27334"></div> <div style="text-align:left;"><img width="800" height="484" class="chimg_photo" style="border:medium;" alt="Widows Spotlight old.PNG" src="http://thimg.todayhumor.co.kr/upfile/201706/14975580942b62a53a77a74e90ad3432a86ecde04a__mn731301__w1397__h846__f321711__Ym201706.png" filesize="321711"></div> <div style="text-align:left;"><img width="800" height="479" class="chimg_photo" style="border:medium;" alt="Backgroud.PNG" src="http://thimg.todayhumor.co.kr/upfile/201706/1497558091f29737915b66407ca597a9b5fcbd0f6a__mn731301__w1282__h768__f66501__Ym201706.png" filesize="66501"></div><br></div> <div>윈도우10 업그레이드 후, 잠금화면에서 계속 사진이 바뀌길래 뭐지 싶어서 확인해보니까 마소에서 주는 것 같아요.</div> <div>WIndows Spotlight라는 이름의 사진인데 이게 스맛폰용이랑 PC용이랑 이렇게 사진이 다 있어요.</div> <div>예뻐서 그냥 저장하려고 구글링하다 그 사진들이 저장되는 위치를 알게 되어서 이 것을 그대로 복사하는 배치파일을 만들어서 쓰고 있어요 ㅎ <div><br></div> <div>@echo off</div> <div><br></div> <div>set cur_path=%cd%<br>set new_folder="Windows Spotlight"<br>set old_folder="Windows Spotlight.old"<br>set new_folder_phone="Windows Spotlight with Smart Phone"<br>set old_folder_phone="Windows Spotlight with Smart Phone.old"<br>set origin_windows_spotlight=%localappdata%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets</div> <div><br></div> <div>if not exist %cur_path%\%new_folder% (<br> echo Make Directory %new_folder%<br> mkdir %cur_path%\%new_folder%<br>) else (<br> echo There is %new_folder%<br>)</div> <div><br></div> <div>if not exist %cur_path%\%old_folder% (<br> echo Make Directory %old_folder%<br> mkdir %cur_path%\%old_folder%<br>) else (<br> echo There is %old_folder%<br>)</div> <div><br></div> <div>if not exist %cur_path%\%new_folder_phone% (<br> echo Make Directory %new_folder_phone%<br> mkdir %cur_path%\%new_folder_phone%<br>) else (<br> echo There is %new_folder_phone%<br>)</div> <div><br></div> <div>if not exist %cur_path%\%old_folder_phone% (<br> echo Make Directory %old_folder_phone%<br> mkdir %cur_path%\%old_folder_phone%<br>) else (<br> echo There is %old_folder_phone%<br>)</div> <div><br></div> <div>echo.<br>echo Move the files where are %new_folder%\ to %old_folder%\<br>move %cur_path%\%new_folder%\* %cur_path%\%old_folder%\</div> <div><br></div> <div>echo.<br>echo Move the files where are %new_folder_phone%\ to %old_folder_phone%\<br>move %cur_path%\%new_folder_phone%\* %cur_path%\%old_folder_phone%\</div> <div>rem Copy the image files of Windows Spotlight contents at new directory</div> <div><br></div> <div>echo.<br>echo Copy the image files of which size more than 128 bytes at Windows Spotligt contents to new directory</div> <div>cd /d %origin_windows_spotlight%<br>for %%f in (*.*) do (<br> if %%~zf geq 128000 (<br> xcopy /y /e "%%~nxf" %cur_path%\%new_folder%\*.jpg<br> )<br>)</div> <div>pause</div> <div><br></div> <div>위 명령어들을 텍스트 파일에 저장하고 확장자명을 (.bat)로 바꿉니다.</div> <div>그리고 저장하길 원하는 폴더에 넣어서 실행만 하면 되요.</div> <div>설정에서 배경화면에 저장한 폴더를 지정하면 (저같은 경우는 Windows Spotlight) 해당 사진이 슬라이드쇼로 배경화면에 나타납니다.</div> <div><br></div> <div>제가 배치파일 명령어들을 잘 몰라 help도 쳐보고 구글링도 해서 만든 코드라 악성코드 아닐거에요.</div> <div>비효율적이기도 할 수도... ㅋㅋㅋ</div> <div>제 컴퓨터에서는 잘 돌아가는데 안 된다면 어쩔 수 없어용~ㅠ 제 실력 부족임....</div> <div><br></div> <div>아 참고로 저는 설정에서 언어를 영어로 해놨는데 다른 프로그램들, 예를 들어 레노버에서 지원하는 앱이나 프로그램들이 언어를 영어로 해놔야 잘 인식을 해서 그렇게 했어요. 혹시나 프로그램들이 안 돌아가면 그렇게 해보세요. 전 잘 돌아가요~</div> <div><br></div> <div>만약에 폴더 이름을 바꾸고 싶으면</div> <div>위 코드에서</div> <div>set new_folder="Windows Spotlight"<br>set old_folder="Windows Spotlight.old"<br>set new_folder_phone="Windows Spotlight with Smart Phone"<br>set old_folder_phone="Windows Spotlight with Smart Phone.old"</div> <div>이 부분의 큰따옴표안에 원하는 폴더 이름을 적으면 그렇게 만들어집니다.</div> <div>예)</div> <div>set new_folder = "배경화면"</div> <div>set old_folder="전 배경화면"<br>set new_folder_phone="스마트폰 용 배경화면"<br>set old_folder_phone="전 스마트폰 용 배경화면"</div> <div><br></div> <div><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike>그리고, 만약 실행하면 Windows Spotlight 폴더에 사진이 전부 저장이 되는데 그 사진이 세로로 길죽한게 스마트폰 용 배경화면입니다.</div> <div>그런데 제가 이 사진 파일들이 세로로 길죽한지, 가로로 길죽한지 판별하는 코드를 몰라 그 파일들만 직접 스마트폰 용 배경화면 폴더에 옮기시면 될거에요.<br></div></div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.