|
-
Oct 28th, 1999, 10:36 PM
#1
Hello i need to make a direcorty with all the files/subdirs hiden from windows explorer or any other thing [ a way to make windows think there is no such diretory there] i saw a app that does just that called MAGIC FOLDERS i think but i need to know how can i do a thing like this as i see it a knowlage at windows hooks are needed here so if you can please help , Tnx
-
Oct 30th, 1999, 03:14 AM
#2
So Unbanned
Go into DOS type
C:\>mkdir test
type:
c:\>ren test _test where the _ = alt 255(null) windows says what?! null!!! I can't read this and when you try to open it it says it can't find it!
-
Oct 30th, 1999, 05:11 AM
#3
Very nice idea but it just renames it to _test
..?
-
Oct 30th, 1999, 05:16 AM
#4
So Unbanned
the null only works in dos nothing in windows can access it i don't know about making it totally invisible (decompile IE5) that would tell you it stores lots of hidden files in tempor~1 you could try making the file archive, hidden, and system?
-
Oct 30th, 1999, 05:57 AM
#5
Well thats not what i was looking for but Tnx for the info anyHow
-
Oct 31st, 1999, 08:58 PM
#6
Member
Well, forget VB ( :-( ) and write a Shell-Extension in C++.
I've read a book by Dino Esposito. Believe me, Shell-Extension lets you command anything in Windows-Explorer !
-
Oct 31st, 1999, 10:32 PM
#7
Well Isnt there a way of doing this out of VB ....
Can you send me something that does that in c if you have it ?
-
Nov 1st, 1999, 02:00 AM
#8
New Member
What are you trying to do? There may be a work-around to this. For example, you could hide the files/directory in a different place, then have your application move it to the appropriate place for use. You could also get a compression control and ZIP it up into a data file in the application directory, then create the directory and unzip it at the appropriate time. There may be other creative ways to do what your looking for.
-
Nov 1st, 1999, 02:06 AM
#9
Dont Be foolish dude , i need this to make a directory hidden , not by hidden/read only i mean hidden like in magic folders ...
I have no Fuc*ing idea how the hell did thay do that [ All i know is that it wasnt by the reg ]
-
Nov 1st, 1999, 02:29 AM
#10
Guru
Magic Folders, iProtect and programs like that hide directories using a TSR, which hooks the system up using SetCocaineEx, no not really, and somehow checks whether a read/write operation is about to be executed. It checks if the operation is aimed at a directory which the user wants hidden, and if so, it cancels the operation with the error code ERROR_FILE_NOT_FOUND. How it does this is a secret which Bill Gates knows but does not feel like sharing with us. The people who made those programs used Call BribeMicrosoftEx(HIDE_DIRECTORY), no not really, to find out how to do it.
------------------
Yonatan
Teenage Programmer
E-Mail: [email protected]
ICQ: 19552879
-
Nov 1st, 1999, 02:36 AM
#11
Frenzied Member
Thats All Interesting..
How would you make a shell extention to hide a folder or files.. I want to do that
Evan
-
Nov 1st, 1999, 12:37 PM
#12
Guru
Hey Björn, how do you do it in C/C++? I'll translate it to VB. There's nothing, nothing you can do in C++ that you can't do in VB! Except: Function overloading, protected class members, operator overloading (REALLY needed in VB, Microsoft!), extended class inheritance (the Implements keyword doesn't always work the best) and INTERFACES (Get a clue, Microsoft).
------------------
Yonatan
Teenage Programmer
E-Mail: [email protected]
ICQ: 19552879
-
Nov 11th, 1999, 02:17 AM
#13
Unfortunately, you can't.
Regards,
------------------
Serge
Software Developer
[email protected]
[email protected]
ICQ#: 51055819
-
Nov 11th, 1999, 12:37 PM
#14
Member
Hi ! (Yonatan)
(Didn't watch the thread for some days...)
What you cannot do with Visual Basic, is creating REAL Dlls. ActiveX-Dlls are fine, but these are not REAL Dlls.
These Dlls are necessary for Shell-Extensions. Don't know if you can use ATL with VB, do you ?
Regards,
Björn
-
Nov 11th, 1999, 06:31 PM
#15
Member
If I'm wrong please correct me,
but without the use of REAL Dlls and without ATL I guess that writing a shell-extension (Property Sheet or Namespace-Ext) is impossible.
-
Feb 19th, 2000, 03:33 AM
#16
New Member
I'm not sure about namespace extensions but almost every other kind of shell extension is possible using VB. Property Page extensions are a little tricky because you need a way to call an AddPage function pointer returned to your shell and I saw someone just create a very simple DLL and declared it in VB to do this. The code in the DLL (regular DLL) was something like this;
typedef BOOL (CALLBACK FAR * LPFNADDPROPSHEETPAGE)(LONG, LONG);
int WINAPI __export AddPage(LPFNADDPROPSHEETPAGE lpfnAddPage, LONG hPage, LONG lParam) {
return lpfnAddPage(hPage, lParam);
}
Also Microsoft has a context menu shell extension sample in VB. You should be able to find it at MSDN.
To be honest shell extentions are the only thing I can think of that are easier in C++ than VB. The code is fairly boilerplate so the actual code you have to add in C++ is just the stuff you want to do. Just look at the MS sample and you'll see what I mean about being harder in VB.
If I can dig up any samples I'll post them but I don't know if I have backups of that stuff from my last hard drive crash. 
-
Feb 19th, 2000, 05:23 AM
#17
Umm - DAMN !!!!!!
i have no Clue what the hell you talking about 
Know about books on the subject ?
-
Feb 19th, 2000, 10:45 AM
#18
Junior Member
I have been trying to make something like MFD too. In order to do something like MFD you have to do some low-level assembler and make a com file. good luck
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|