Results 1 to 3 of 3

Thread: Need expert advice on Shell Programming with Visual Basic

  1. #1

    Thread Starter
    Fanatic Member daydee's Avatar
    Join Date
    Jun 2001
    Location
    Canada
    Posts
    560

    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

  2. #2
    Fanatic Member Gandalf_Grey_'s Avatar
    Join Date
    Oct 2001
    Location
    the 42nd dimension
    Posts
    665
    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
    Attached Images Attached Images  

  3. #3

    Thread Starter
    Fanatic Member daydee's Avatar
    Join Date
    Jun 2001
    Location
    Canada
    Posts
    560

    ??

    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:
    1. intFF = FreeFile
    2. 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
  •  



Click Here to Expand Forum to Full Width