BleepingComputer.com: Windows 7 File Permissions of Executed File

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Windows 7 File Permissions of Executed File

#1 User is offline   PropagandaPanda 

  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Instructor
  • Posts: 9,332
  • Joined: 10-March 08
  • Gender:Male

Posted 25 October 2010 - 08:30 PM

Hello.

This is not directly related to programming, but bugs the heck out of me when I'm trying to program :thumbsup: .

Ever since I've gotten my Windows 7, I've noticed that after a file is run, it becomes unwritable for some time.

For example, I create a batch file named hello.bat on my destkop using Notepad containing the following
ECHO Hello!

I run it. For about a minute after the file finishes running, I cannot edit the file. Trying to gives me the "In use by other process" message. The file is still deletable.

A similar thing happens when I compile C++ executables. After compiling and running, I cannot compile using the same name without recieving a file in use error. After trying to overwrite a file, that file becomes undeletable for about a minute, then disappears.

I can work around it by deleting the file after I run it, but it's tedious to do that.

Does anyone else have this problem?

With Regards,
The Panda

#2 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 26 October 2010 - 05:13 PM

I have not had that problem, but the issue has nothing to do with permissions. It has to do with resources being allocated by the OS, and then utilized and held by the OS until such a time that the OS can free those resources.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#3 User is offline   Romeo29 

  • Learning To Bleep
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 2,834
  • Joined: 06-July 08
  • Gender:Not Telling
  • Location:127.0.0.1

Posted 27 October 2010 - 07:08 AM


#4 User is offline   PropagandaPanda 

  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Instructor
  • Posts: 9,332
  • Joined: 10-March 08
  • Gender:Male

Posted 03 November 2010 - 05:34 PM

Hello.

Thank you. I'll go see what handles are on the file sometime.

With Regards,
The Panda

#5 User is offline   PropagandaPanda 

  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Instructor
  • Posts: 9,332
  • Joined: 10-March 08
  • Gender:Male

Posted 19 January 2011 - 07:21 PM

Hello.

I finally figured it out. :lol:

It turns out that the Themes Service, when disabled, creates some random permission issues. After re-enabling Themes, everything is working as it should normally.

I guess there aren't many people who prefer the old XP look.

With Regards,
The Panda

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users