Results 1 to 4 of 4

Thread: Closing a file

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2002
    Posts
    3

    Closing a file

    How can i close a file after i called it ?
    [i mean an exe file that i called, not opening by "open]

    Thanks, Tomer.

  2. #2
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    SendKeys "%{F4}"
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  3. #3
    Fanatic Member skald2k's Avatar
    Join Date
    Feb 2002
    Location
    Sydney, Australia
    Posts
    535
    What if that application does not support ALT-F4?
    - If at first you dont succeed, then give up, cause you will never will!

  4. #4
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    Then don't open it

    Honestly, I cannot think of one that does not, although some prompt when you ALT F4. If you know the app prompts, look for the window title of the prompt when you close it and sendkeys a %Y or %N as appropriate.

    You could also send something else.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

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