강좌 / 팁

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

2020.04.03 15:32

레마클로 조회:638 추천: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 - - -
926 소프트웨어| Win10XPE - Desktop.INI 삭제 과정 안 보이게 하기. [3] 입니다 1199 8 07-19
925 소프트웨어| 영상이름에 자막 매치시키기 오토핫키 [8] 비려막존 1177 8 04-27
924 소프트웨어| 선택한 파일명으로 Everything에서 검색 [17] 지후빠 2338 8 09-04
923 윈 도 우| 배치파일로 무설치 등록 프로그램 만들기 [4] 슈머슈마 2284 8 11-30
922 소프트웨어| 데이터 영구 삭제 [5] gooddew 3051 8 01-01
921 윈 도 우| 크로뮴 엣지 일부 스트리밍 사이트 (DRM) 영상 재생 불가시 [3] 솔트 1801 8 04-21
920 모 바 일| [Tip] QR 코드로 와이파이 SSID와 비번 입력하기 [5] asklee 1847 8 02-09
919 윈 도 우| %카리스마조%님 PE를 UEFI 부팅 USB만들기 [12] 하늘은높고 3484 8 02-24
918 기 타| [부팅영역] FAT12, FAT16, FAT32, exFAT 호환성 비교표 [2] 흘러가듯이 1305 8 02-28
917 윈 도 우| 모든 파일 또는 폴더를 작업 표시줄에 고정 [3] 레마클로 1493 8 02-29
916 윈 도 우| WinRE 복구에 대해서.............. [4] 밤이슬216 1425 8 03-15
915 소프트웨어| 간단한 USB 로 UEFI 와 MBR 로 부팅 방법 [13] 맹물 4059 8 03-18
914 기 타| 특정 프로그램이 32비트? 64 비트? 여부 확인하기 [6] gooddew 1448 8 03-27
» 윈 도 우| file_folder2Hide&show, vbe <--> vbs [2] 레마클로 638 8 04-03
912 윈 도 우| Windows 11 작업표시줄 투명 [3] giwldlst 2955 8 07-01
911 소프트웨어| DiskFresh 사용법(HDD,SSD,플래시 데이터 보존) [10] 메리아 2582 8 05-05
910 소프트웨어| dup2patcher.dll 디컴파일링-3 [6] sunshine 989 8 07-24
909 소프트웨어| 크롬(Chrome)에서 maget 실행 확인창 안나오게 하기 [6] 깨블리 1491 8 07-12
908 소프트웨어| 오토핫키로 명령 프롬프트 실행하기 스크립트 [4] 미유키로즈 930 8 09-25
907 기 타| 카페에 BGM 넣어보자 [3] 메인보드 827 8 08-29
XE1.11.6 Layout1.4.8