im using FileSystemWatcher object to retreive files from a folder. The code works good for local machine drives/folders but throws exception when i use a NETWORK Path. For some reason the code do not throw an exception if i start the service in debug
I have logon.bat script that runs each time a user logs into their workstation of an Active Directory domain. This script maps some network drives with commands like this: net use x: \\192.168.0.2\share1 net use y: \\192.168.0.3\share2 net use z: \\1
I want a powershell/batch script that map a drive on a free letter. Or test letters then map on a free one. I'm sure there is something easier than this. $tab = @() $tab = @('A:', 'B:', 'C:', 'D:', 'E:', 'F:', 'G:', 'H:', 'I:', 'J:', 'K:', 'L:', 'M:'
What to do when a password contains PS special chars ? Invoke-Expression -Command "net use x: $Path /USER:domain1\user1 7Ui4RT,@T /persistent:no" This fails on syntax -- because PS interprets 7Ui4RT,@T as an array Invoke-Expression -Command &quo
I have a .bat file that maps a network drive, runs an MS Access program then deletes the mapped drive and exits. When I run it through Control-M the .bat runs and finishes but the job in Control-M never ends. I have tried multiple things to end the f
I am trying to copy a file from a location on the C drive to a mapped network drive (Z) which is \address\content\ However I am getting the following error message: System.UnauthorizedAccessException: Access to the path '\\192.168.100.227\content\2-B
Using Windows 7 Enterprise with SP1, but I'm hoping to get a generic answer that would apply to Windows XP/2003/2008/Vista/7. From a DOS prompt, I execute a net use command to map the Z: drive to a share on another computer, but I don't use my curren
I have a deployment project built with Visual Studio 2008 that fails to install. It's using the default GUI. The error occurs when it transitions to the Progress page. The GUI error message is: Error reading from file F:\Packages\Test\Release\Test.ms
I implemented a file watcher but I noticed that java nio file watcher doesn't generate events for files being copied on mapped drives. For instance, I've run the file watcher on Unix to watch a local directory (/sharedfolder) which is mapped on windo
I have a project using subsonic that I developed in Visual Studio 2008 on C: drive. No problem there. I've just upgraded to Visual Studio 2010 (and as my computer coincidentally died, I'm now running Windows XP virtualised with VirtualBox). The proje
I am using SQL Server 2008. I have a table (TBL_FILE) that stores user uploaded files in binary column. However users do not want to open our system to access the file. They want to have a folder (network drive, Web folder, local drive, local folder.
I'm using a custom subclass QFileSystemModel in a treeview to allow users to select folders using checkboxes. My problem is that Mapped network drives are listed as hard drives, but I cannot operate on them, So I want to only show local drives. How c
I have a network shared folder mapped to a drive letter, which is accessible from Windows Explorer, from the command prompt as well as from my WinForms application without problem. It is also accessible from my Windows service using a UNC path. Howev
Short version: Is it possible or not to use impersonation in ASP.NET to access mapped drives? Long Version: I'm currently using impersonation in ASP.NET to gain access to network files. This is working perfectly for any network file using a UNC path,
In PowerShell, even if it's possible to know if a drive is a network drive: see In PowerShell, how can I determine if the current drive is a networked drive or not? When I try to get the "root" of the drive, I get back the drive letter. The setu