강좌 / 팁

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

2020.04.03 15:32

레마클로 조회:643 추천: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 - - -
4172 윈 도 우| [실사] 윈도우7 얼티메이트 VHD 설치 방법 [6] 무월 827 11 05-08
4171 윈 도 우| install.wim 통합 시 다중 언어 [1] CraXicS 946 4 05-06
4170 윈 도 우| PE의 wim 부팅과 윈도우의 wimboot [wim 정보 비교] [9] suk 1438 12 05-06
4169 윈 도 우| WIM 일괄 추출 [5] CraXicS 1423 14 05-05
4168 소프트웨어| 슬기로운 스포티파이(Spotify) 생활 [4] 와로 1456 5 05-03
4167 윈 도 우| Windows 11의 God 모드를 사용하여 한 화면에서 모든 설정... [1] VᴇɴᴜꜱGɪ 1675 5 04-25
4166 윈 도 우| (수정) WIM 우클릭 부팅 관련 메뉴 4번째 [21] 지후빠 2816 31 04-24
4165 소프트웨어| 카멜님의 VHDmanLite 0.04 사용법/0.05추가 [10] keen 1501 14 04-22
4164 윈 도 우| 멀티부팅 선택 우클릭메뉴 [16] 와로 3380 32 04-17
4163 소프트웨어| [오토핫키]듀얼모니터에서 커서 점프하기 Version 6 [7] shot4u 2193 14 04-13
4162 소프트웨어| [포토샵] 배니싱 포인트 텍스트 왜곡 배치 [10] 무월 1145 13 04-12
4161 소프트웨어| [포토샵] 하늘 자동 인식 교체 [8] 무월 1424 11 04-11
4160 윈 도 우| [팁&경험담] 구형노트북HDD에서 SDD 복제 후 오리지널w... [6] 바수 2330 3 04-09
4159 소프트웨어| [포토샵] 낙관 만들기 [7] 무월 2018 11 04-09
4158 소프트웨어| [포토샵] 이미지 패턴 합성 [11] 무월 883 9 04-08
4157 소프트웨어| [포토샵] 도장 투명 이미지 추출 [23] 무월 3026 20 04-06
4156 윈 도 우| 지후빠님 UAC 회피기동 [1] 슈머슈마 1171 10 04-06
4155 소프트웨어| ACDsee 로 이미지파일 빨리 분류하는 법 [1] ton3d 1161 4 04-06
4154 소프트웨어| [포토샵] 짝눈 보정 [15] 무월 1579 17 04-05
4153 소프트웨어| [포토샵] 인물 배경 분리 및 배경 합성 [12] 무월 1551 16 04-04
XE1.11.6 Layout1.4.8