Top "File-access" questions

Questions about programmatically accessing individual files.

Local file access with JavaScript

Is there local file manipulation that's been done with JavaScript? I'm looking for a solution that can be accomplished with …

javascript file-access
How do I create a file AND any folders, if the folders don't exist?

Imagine I wish to create (or overwrite) the following file :- C:\Temp\Bar\Foo\Test.txt Using the File.…

c# .net file-access
how can you easily check if access is denied for a file in .NET?

Basically, I would like to check if I have rights to open the file before I actually try to open …

c# .net file-access
System.ComponentModel.Win32Exception when starting process - file not found, but file exists

I am trying to create a manager for my autostarts. It should read an XML file and then start my …

c# exception file-access file-not-found win32exception
How to copy a file while it is being used by another process

Is it possible to copy a file which is being using by another process at the same time? I ask …

c# .net file-access file-copying
I need help understanding PowerShell security and file access issues

I'm working with PowerShell, running a script (from my console) that includes this line: $inpath = "C:\users\xxxxx\path\foo\…

powershell file-access
File access error with FileSystemWatcher when multiple files are added to a directory

I am running into an issue with a FileSystemWatcher when multiple files are placed into the watched directory. I want …

c# exception-handling filesystemwatcher file-access
FileStream.close() does not free file for other processes

I have Following Code in a Page_Load called function. When the Page is loaded the first time after starting …

c# asp.net filestream file-access
System.UnauthorizedAccessException was unhandled

I am getting a access denied exception. How can I fix this? Here is the exception: System.UnauthorizedAccessException was unhandled …

c# file access-denied unhandled-exception file-access
How to access a variable across two files

I have three files - global.php, test.php, test1.php Global.php $filename; $filename = "test"; test.php $filename = "myfile.…

php global-variables static-variables file-access