강좌 / 팁

윈 도 우 file_folder2Hide&show, vbe <--> vbs

2020.04.03 15:32

레마클로 조회:631 추천:8

 

FF2HIDE.png

 

 

file_folder2Hide.7z

 

SendTo_copyfilefolder2Hide.vbs를 실행하여 ---file_folder2Hide---.vbs를 SendTo폴더에 복사

 

 

 

f2hs.gif

---file_folder2Hide---.vbs(투박하지만 작동함)

 

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Set Fso = CreateObject("Scripting.FileSystemObject")

Set Args = WScript.Arguments

 

If (Fso.FolderExists(Args(0))) Then 

            Set gFolder = Fso.GetFolder(Args(0))

            gDir = Fso.GetParentFolderName(gFolder) 

            strDir = gDir & "\s-h-o-w-FOLDER.vbs"

Set outFile = Fso.CreateTextFile(strDir, True)

outFile.WriteLine "Set Fso = CreateObject(""Scripting.FileSystemObject"")"

outFile.WriteLine "Set gFolder = Fso.GetFolder(""" & gFolder & """)"

outFile.WriteLine "gFolder.Attributes = gFolder.Attributes AND NOT 2"

outFile.WriteLine "Fso.DeleteFile Wscript.ScriptFullName, True"

outFile.WriteLine "Set Fso = nothing"

outFile.WriteLine "Set gFolder = nothing"

outFile.WriteLine "WScript.Quit"

outFile.Close

     gFolder.Attributes = gFolder.Attributes XOR 2

Else

            Set gFile = Fso.GetFile(Args(0))

            gDir = Fso.GetParentFolderName(gFile) 

            strDir = gDir & "\s-h-o-w-FILE.vbs"

Set outFile = Fso.CreateTextFile(strDir, True)

outFile.WriteLine "Set Fso = CreateObject(""Scripting.FileSystemObject"")"

outFile.WriteLine "Set gFile = Fso.GetFile(""" & gFile & """)"

outFile.WriteLine "gFile.Attributes = gFile.Attributes AND NOT 2"

outFile.WriteLine "Fso.DeleteFile Wscript.ScriptFullName, True"

outFile.WriteLine "Set Fso = nothing"

outFile.WriteLine "Set gFile= nothing"

outFile.WriteLine "WScript.Quit"

outFile.Close

     gFile.Attributes = gFile.Attributes XOR 2

End If

 

Set Fso = nothing

Set Args = nothing

Set gFolder = nothing

Set gFile= nothing

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

 

 

 

============================

Set objFSO = CreateObject("Scripting.FileSystemObject")

Set objFile = objFSO.GetFile("C:\FSO\ScriptLog.txt")

 

If objFile.Attributes AND 0 Then

    Wscript.Echo "No attributes set."

End If    

If objFile.Attributes AND 1 Then

    Wscript.Echo "Read-only."

End If    

If objFile.Attributes AND 2 Then

    Wscript.Echo "Hidden file."

End If    

If objFile.Attributes AND 4 Then

    Wscript.Echo "System file."

End If   

If objFile.Attributes AND 32 Then

    Wscript.Echo "Archive bit set."

End If    

If objFile.Attributes AND 64 Then

    Wscript.Echo "Link or shortcut."

End If    

If objFile.Attributes AND 2048 Then

    Wscript.Echo "Compressed file."

End If

 

============================

 

If objFolder.Attributes AND 2 Then

    Wscript.Echo "Hidden folder."

End If    

If objFolder.Attributes AND 4 Then

    Wscript.Echo "System folder."

End If    

If objFolder.Attributes AND 16 Then

    Wscript.Echo "Folder."

End If  

If objFolder.Attributes AND 32 Then

    Wscript.Echo "Archive bit set."

End If

If objFolder.Attributes AND 2048 Then

    Wscript.Echo "Compressed folder."

End If

 

=========================

 

 

---Encode-vbs2vbe---.vbs와 ---Decode-vbe2vbs---

 

SendTo_copyEncodeDecodeVBSVBE.vbs를 실행하여 

      ---Encode-vbs2vbe---.vbs와 ---Decode-vbe2vbs---.vbs를 SendTo폴더에 복사

제가 만든 파일 아니고 외국자료입니다

 

[예] Svchost_reducer.vbe 마우스 우클릭 --> 보내기 --> "---Decode-vbe2vbs---.vbs" 클릭

 

f2hs2.png

 

 

 

번호 제목 글쓴이 조회 추천 등록일
[공지] 강좌 작성간 참고해주세요 gooddew - - -
4461 모 바 일| Mobile PowerDirector Chroma Key 적용하는 방법 상세 설명 무림거사 578 2 08-16
4460 모 바 일| Kinemaster강좌, Youtube 맞춤미리보기이미지 제작방법&... 무림거사 587 1 08-18
4459 소프트웨어| 일부 Firefox 사용자가 연결 문제를 보고함 (내부 해결 방법) [1] VᴇɴᴜꜱGɪ 589 2 01-14
4458 소프트웨어| SDK(Software development kit) 에 대한 이해 [5] 입니다 591 7 03-27
4457 기 타| pe의 Registry.cmd 파일 수정 [1] bangul 596 8 05-28
4456 소프트웨어| Nsis 패킹 파일에서 .nsi 스크립트 추출하기 [7] sunshine 601 16 11-14
4455 윈 도 우| winpe에서 startis[all]back를 이용한 탐색기 색 변경 [14] sunshine 611 14 08-23
4454 소프트웨어| pureBasic 구조체, Union 구조체 [4] 입니다 621 9 03-25
4453 모 바 일| Mobile PowerDirector 에 한글 글꼴 설치하는 방법,  무림거사 626 1 08-12
4452 윈 도 우| AdGuard 사용시 다나와 메뉴 폰트 깨지는 현상 [3] damoa 626 2 02-11
4451 모 바 일| #Kinemaster강좌 사진 혹은 단색배경에 글자 입력 방법 무림거사 628 1 07-18
4450 윈 도 우| nircmd 활용 2개 [1] 레마클로 628 3 03-02
4449 소프트웨어| AIMP 프로필 폴더 AIMP폴더로 옮기기 [2] 눈이 629 5 08-03
4448 소프트웨어| wim 생성실패와 복구실패. 그리고 Wimlib_clc 사용에 대한 ... [2] heykevin 629 4 01-28
4447 서버 / IT| SQL Server Port 변경 및 접속 확인 펨토 630 1 04-22
4446 윈 도 우| 아래 마우스 우측 재시작메뉴 하위 - 하위 메뉴넣기 영상입... [4] 코요88 630 3 11-22
» 윈 도 우| file_folder2Hide&show, vbe <--> vbs [2] 레마클로 631 8 04-03
4444 윈 도 우| rsimagex,gimagex에서 vmware map한 드라이브 안보일때 [4] 봉냐 638 3 02-21
4443 소프트웨어| purebasic 폼 만들기 기본 [3] 입니다 642 13 03-24
4442 소프트웨어| [포토샵] 패스를 따라 텍스트 입력 [4] 무월 660 14 04-03
XE1.11.6 Layout1.4.8