TechSpot

Need to block a program from saving file to temp directory.

By MaXtor
Jan 28, 2006
  1. I need block a program from saving to temp directory. Its a little project of mine and I need a program or something that is capable of blocking a program from using with temp directory located here:
    C:\Documents and Settings\---Account---\Local Settings\Temp

    When the program is ran it saves a temperary file in that directory, I need a way to stop it this. Sorry I can't really explain why. Can anyone help me?

    I don't care if the Temp folder is disabled or anything, I just need to stop the program from saving that temp file. Also the file changes names, so its like "randomname".tmp...

    I need help ASAP...
    Thank you so much!
     
  2. xero

    xero TS Rookie Posts: 97

    Are you running xp home edition? too bad. no fix.

    Running professional? on ntfs partition?
    Good.

    Create a backup administrator in user management
    Find out the process which writes the file (use process explorer from sysinternals.com) and its user.
    (continue only when it is not localsystem)
    Block the user from the process by setting read only rights (list execute and read) on the security tab of the folder. Apply settings and propagate to children.

    Make sure you dont deny the groups!!! only the user the process runs with.
     
  3. Samstoned

    Samstoned TechSpot Paladin Posts: 2,582

    you can find how to adjust under mycomputer properties advanced environment variables
    can delete and move to another drive and rename
     
  4. MaXtor

    MaXtor TS Rookie Topic Starter Posts: 93

    Thank you guys. Okay I think I got it. Thanks again for the help.
     
  5. xero

    xero TS Rookie Posts: 97

    no problemo
     
Topic Status:
Not open for further replies.


Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...


Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.