problem opening file

Moongaming10

New Member
so i keep getting the error saying "error opening file for writing" and i read through other posts about it but i cant seem to find the file at all
1771342006908.png

ive reinstalled the installer even waiting a month then retrying nothing i have done is working and i dont know how to fix this
 
...i cant seem to find the file at all
How you are looking for the file? Do you performing the search through the Windows File Explorer find a file window (aka "search computer" with "Ctrl + F" or "F3" hotkey) or in some other way? Because the folder "C:\ProgramData\" has special attribute "Hidden" by default, and you can't see it unless configure the File Explorer to show hidden files and folders.
 
You may try to remove whole folder named C:\ProgramData\obs-studio-hook (action may require admin rights and PC restart)
Don't worry, this folder and its contents will be re-created by OBS on first use of the Game Capture source.

If during removal of the folder the Windows File Explorer will say that the files are still in use - then, please, post what exactly it says (likely, there will be mentioned the name of the program that still uses these files).

Additional info.
Depending on version of OBS - content in this folder changes, so it is recommended to remove it if you downgrading OBS (because older OBS cannot overwrite newer files - you should remove them manually).
 
Not much... it seems that OS follows overall tendency for total degradation.

Anyway, try to find the program that uses your files and terminate it. This should free the files and allow to remove them without issues.
There are different ways how to find the program that uses your file right now. All methods are not easy. I can recommend only the one that worked fine in the past (when OBS v27+ was popular). You may google for other methods yourself.

Find and close the program that uses your file/folder:
  1. You need to install (usually simple unpack action from the "SysinternalsSuite.zip" archive from Microsoft) 3rd party util named "procexp.exe" (aka Process Explorer from Microsoft). This is special program that can show to you what program is using your file.
  2. Run the "procexp.exe" from the File Explorer of Windows (launch it as you usually running other utils; sometimes you need to run it "as administrator"). For 64-bit OS there will be created (temporary) new file named "procexp64.exe" next to original "procexp.exe" - it is normal. If program is running normally then a new window will appear named "Process Explorer".
  3. In the main menu of the opened Process Explorer window click Find > Find Handle or DLL... New window will appear named "Process Explorer Search".
  4. In the field Handle or DLL substring: type the name of the file/folder, in your case this is obs-studio-hook and click Search button
  5. After some time the list below it will be filled with the search results.
  6. Look at the Process column and try to close all the programs mentioned there. Do it as you usually close the programs. For example, "chrome.exe" was listed - close your Chrome browser. Or use Task Manager of the Windows to force process termination (search more info online how to do it).
  7. When done - close all opened windows of the Process Explorer - you don't need it anymore.
Now you can try remove your folder again. Hope this helps. No guaranty that it will work for newer systems. Search online for other methods.
 
Back
Top