Join us at IRC!
One mans freedom fighter, another's terrorist.
Friday, May 25, 2012
Navigation
Members Online
Total Online: 29
Web Spiders: 15
Guests Online: 28
Members Online: 1

Registered Members: 70218
Newest Member: iceiceice
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

VB 2008 File/Folder Hider

Cybernaught
Member



Posts: 15
Location: Below Zero
Joined: 11.09.05
Rank:
Monster
Posted on 19-09-10 01:08
I have been building a program for myself, to hide files and folders using the "attrib file/folder +r +a +s +h" and the program will unhide the files too, but, I cant figure out how to get the program to search for the files that I have hidden with this method, I have to manually enter the path and file name to unhide them.

I am using a generic browse button that allows me to browse the files on my computer, but the browse feature obviously doesn't search hidden files. Is there a way to make it search those hidden files?

If not, is there anyway to save entered text from the box where I hid the file, so that I can retrieve it, or have it come up as recent text entered so that I don't even have to go find what I've already hidden?

Any ideas that anyone has, or questions about what I'm trying to explain, would be greatly appreciated! Thanks in advance for your help!


andrewmr_02@hotmail.com andyman35102881 http://cybernaught.darkbb.com
Author

RE: VB 2008 File/Folder Hider

fuser
Member



Posts: 959
Location: in front of a computer (duh)
Joined: 05.04.07
Rank:
HBH Guru
Posted on 19-09-10 04:31
maybe this will help:

http://www.java2s.com/Code/VB/File-Directory/FindHiddenFileunderadirectory.htm










Telling modern Internet users to stop whining is like telling them to stop breathing — it seems unrealistic and inhumane. Paul Lutus

catinthecpu@hotmail.com
Author

RE: VB 2008 File/Folder Hider

Cybernaught
Member



Posts: 15
Location: Below Zero
Joined: 11.09.05
Rank:
Monster
Posted on 19-09-10 23:35
Thank you for the reply.

That link you gave me was a big help, it has put me back on the track, but I'm still not moving... Here is the code I have so far, and what it's doing:

Dim myDirectory As DirectoryInfo
myDirectory = New DirectoryInfo("C:\users\me\desktop\" )

Dim aFile As FileInfo
For Each aFile In myDirectory.GetFiles
If (aFile.Attributes And FileAttributes.Hidden) = (FileAttributes.Hidden And FileAttributes.System And FileAttributes.ReadOnly And FileAttributes.Archive) Then
Form4.TextBox1.Text = aFile.FullName
End If
Next


This is only finding one file at any time. I have Form4.TextBox1 set as a multiline box with scroll bars even, but it only finds one file and it's not even a hidden file, it's a text file that is visible and accessible on my desktop, the file also starts with a Z, when I change the name of the file, it chooses a file that starts with an X which is also, not hidden and it's a shortcut icon. I think that it's only printing the last file it finds and replacing the ones before it before I get a chance to see them and it's not even showing the last hidden file... Any ideas?


andrewmr_02@hotmail.com andyman35102881 http://cybernaught.darkbb.com
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.