?
Solved

Hide filenames...

Posted on 2003-02-24
6
Medium Priority
?
286 Views
Last Modified: 2010-05-01
Is there a way to use vb code to hide and unhide filenames?
0
Comment
Question by:tsugani
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 1

Expert Comment

by:rgenius
ID: 8007424
You can change the file attribute to hide files. But then again, all hidden files can be viewed if the 'Show all files' option in Windows Explorer is set to on.

Sub Command2_Click()
  FileName = "c:\autoexec.bat"
  SetAttr FileName, GetAttr(FileName) And 31
  Text1.Text = "Archive attribute set to Off."
End Sub

http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarvbtips/html/msdn_msdn44.asp
0
 

Author Comment

by:tsugani
ID: 8014597
Thanx, but isn't there anything u can do to overcome the 'show all files' setting? There is a little program called Encrypted Magic Files that hides folders regardless of any windows setting. Is there a simple way to do this with vb?


I am increasing the points to 500.
0
 
LVL 1

Expert Comment

by:rgenius
ID: 8022045
Im not familiar with that program, and by the way, what files are you trying to hide? And why do you want to hide them?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:tsugani
ID: 8023855
What are u the programmer's police :) ?
Anyway i want to hide some database and some .ini files to protect them from being erased.
0
 
LVL 1

Accepted Solution

by:
rgenius earned 1000 total points
ID: 8024018
No, im from FBI - File Bureau of Investigation. :-)

Why not just rename them as different filename. Example: One of my database is hidden amongst system files in C:\windows\system, I renamed it as MYDTB.OCX eventhough its an MDB file.
0
 

Author Comment

by:tsugani
ID: 8025756
Although i am not completely satisfied with your answers if i dont get anything better in the next 2-3 days i am gonna accept one of them.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question