• ¡Welcome to Square Theme!
  • This news are in header template.
  • Please ignore this message.
مهمان عزیز خوش‌آمدید. ورود عضــویت


امتیاز موضوع:
  • 6 رای - 2 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
Title: سورس مخفی کردن پوشه vb6
حالت موضوعی
#1
با سوری میتونید یک فولدر یا پوشه رو مخفی کنید:

Using:
FileSystemObject
Require:
Microsoft Scripting Runtime
or
C:\WINDOWS\System32\scrrun.dll


so using attributes of the folder we hide it and by giving it a different name from the one he have it will not be even able to access it from Command Prompt. So here is the code for hiding

کد:
Private Sub Command1_Click()




    Dim FS As New FileSystemObject



    strPath = "E:\TestFolder"



    Name strPath As strPath & "A"



    Set F = FS.GetFolder(strPath & "A")

    f.Attributes = -1


End Sub

سورس 2 :

کد:
Private Sub Command2_Click()



    Dim fs As New FileSystemObject


    Dim f


    Dim strPath As String




    strPath = "E:\TestFolder"



    f.Attributes = 0


    Name strPath & "A" As strPath


End Sub
گروه دور همی پارسی کدرز
https://t.me/joinchat/GxVRww3ykLynHFsdCvb7eg
 
پاسخ
  


موضوعات مشابه ...
موضوع نویسنده پاسخ بازدید آخرین ارسال
  کدگذاری روی پوشه ها aghamali 0 2,170 10-23-2017، 08:15 PM
آخرین ارسال: aghamali
  سورس کدهای ویژوال بیسیک Amin_Mansouri 8 16,562 05-15-2017، 04:35 PM
آخرین ارسال: minarad69
  سورس کد شماره گیری از مودم (ویژوال بیسیک 6 ) Amin_Mansouri 1 6,618 05-07-2017، 06:54 PM
آخرین ارسال: alikorg
  سورس کد کار با وب کم (ویژوال بسیک 6) Amin_Mansouri 1 8,167 04-20-2015، 10:10 PM
آخرین ارسال: hackert41389
  فیلتر کردن دیتا گرید aghamali 4 4,984 11-15-2014، 10:50 AM
آخرین ارسال: aghamali
  سورس کد ذخیره میخوام روشنا 5 9,057 06-25-2014، 08:46 AM
آخرین ارسال: Amin_Mansouri
  دریافت سورس سایت بصورت یونیکد aleas 3 5,148 06-07-2014، 09:19 PM
آخرین ارسال: aleas
  جدا کردن حروف عکس aleas 1 3,456 05-29-2014، 11:06 AM
آخرین ارسال: saeedh
  سورس جمع آوری وبلاگ های بروز میهن بلاگ saeedh 7 9,002 05-26-2014، 04:09 PM
آخرین ارسال: Amin_Mansouri
  سریعترین روش دریافت سورس سایت aleas 0 3,295 05-20-2014، 12:17 AM
آخرین ارسال: aleas

پرش به انجمن:


Browsing: 1 مهمان