|
-
Mar 10th, 2002, 09:39 AM
#1
Thread Starter
Fanatic Member
Need expert advice on Shell Programming with Visual Basic
Specifically looking to find out more regarding:
Copy Hook Handler - Which is called when a folder object is about to be copied, moved, deleted, or renamed. The handler can either allow or prevent the operation.
Unless there exist another way with VB to prevent a folder from being renamed ? This is actually what I'm trying to do.
Thank in advance
-
Mar 10th, 2002, 11:04 AM
#2
Fanatic Member
-
Mar 10th, 2002, 01:08 PM
#3
Thread Starter
Fanatic Member
??
Originally posted by Gandalf_Grey_
why not just make a temp file in that folder, then open that file in your program, when someone trys to rename it, it will give them that error about
Ok here's what I tried.
I created a file named myFile.tmp in my C:\Test directory and opened it in my app using this code:
VB Code:
intFF = FreeFile
Open "C:\Test\myFile.tmp" For Input Lock Read Write As #intFF
With app running, went and renamed C:\Test folder but did not get any errors!?
Any idea?
Does the .tmp file have to be created at run time as well?
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
|