Questions tagged [network-drive]

Network drives are physical or virtual hard drives that are shared with the network or home group.

Network drives are physical or virtual hard drives that are shared with the network or home group. This provides some (or all users) the capability of accessing, viewing and managing the files and directory structure on the drive, just like a local drive. A network drive can basically be a shared directory, but it also can be a shared root drive from a certain machine.

345 questions
76
votes
1 answer

What are `Zone.Identifier` files?

I often see files named 'blabla.exe:Zone.Identifier' when monitoring I/O with Process Monitor. The files are seen on network-drives. What are Zone.Identifier files? What does the colon mean in the filename? Is the colon related the file's…
Benjamin
  • 8,715
  • 14
  • 72
  • 121
45
votes
17 answers

Keeping Visual Studio Projects on a Network Drive

We just did a move from storing all files locally to a network drive. Problem is that is where my VS projects are also stored now. (No versioning system yet, working on that.) I know I heard of problems with doing this in the past, but never heard…
Mike Wills
  • 19,825
  • 26
  • 87
  • 143
23
votes
4 answers

Copy file on a network shared drive

I have a network shared drive ("\serveur\folder") on which I would like to copy file. I can write on the drive with a specific user ("user"/"pass"). How can I access the shared drived with write privilege using C#?
Martin Delille
  • 9,399
  • 11
  • 55
  • 118
19
votes
6 answers

Easiest way in C# to find out if an app is running from a network drive?

I want to programmatically find out if my application is running from a network drive. What is the simplest way of doing that? It should support both UNC paths (\\127.0.0.1\d$) and mapped network drives (Z:).
Doron Yaacoby
  • 8,989
  • 8
  • 45
  • 57
17
votes
7 answers

Mapping a network drive without hardcoding a drive letter in a batch file

I need to map a network drive with a batch file, but don't want to specify the drive letter. The batch file is used as part of a deployment process; I call the batch file from CruiseControl.Net, the batch file needs to map a UNC path which requires…
Simon Martin
  • 4,027
  • 7
  • 54
  • 88
15
votes
3 answers

How do I access a network drive through the usual System.IO classes?

My software handles multiple operations on files, and I have now finished writing the related functions, using the System.IO classes. I now need to add support for network drives. Using a mapping works very well (although Directory.GetFiles is a bit…
Clément
  • 10,212
  • 13
  • 62
  • 104
12
votes
2 answers

Programmatically determine user who last modified file on Windows?

I've been tasked with writing a simple command line utility in C# that will monitor a directory on a server that several users will be accessing to copy/cut/paste/view data. I used FileSystemWatcher to do this but it's lacking a couple features. Is…
Jamie Curtis
  • 924
  • 1
  • 8
  • 24
12
votes
2 answers

How can I query a temporary PS-Drive while returning files with a name relative to the drive?

I am trying to create a script where I will be searching the file servers for non inherited permissions. I have run into the 260 character limit for file names as a result. A suggestion I saw, that I thought would help, a couple of times was to…
Matt
  • 40,384
  • 7
  • 62
  • 97
12
votes
2 answers

Accessing a file on a network drive

Background: I have an application that has to read from files on a network drive (Z:) This works great in my office domain, however it does not work on site (in a different domain). As far as I can tell the domain users and network drives are set in…
David Božjak
  • 14,847
  • 15
  • 63
  • 97
11
votes
1 answer

Programmatically check whether a drive letter is a shared/network drive

Is there a way to check whether a drive letter stands for a shared drive/network drive or a local disc in python? I guess there is some windows api function that gives me that info, but I can't find it. Perhaps there is even a method already…
Philip Daubmeier
  • 13,432
  • 4
  • 39
  • 73
11
votes
5 answers

Application says network drive doesn't exist, but found using OpenFileDialog

I have made a little app that's running on a Win7-PC. All it does, is to check the content of a network drive at 1:00 O'clock in the morning (and compare it to a folder on its local hard drive), and if there´s differences, copy the differences to…
Mads Aggerholm
  • 282
  • 3
  • 11
8
votes
0 answers

RStudio: unexpected call to `dir.create()` with the first instruction within a project stored on a network drive

First, apologies for a lack of a reproducible example, but I cannot really provide one as I believe the problem lies within my network settings. Please treat this question as a call for help in debugging the issue... After opening in RStudio a…
m-dz
  • 2,195
  • 14
  • 27
8
votes
6 answers

PowerShell Test-Path returns False when testing a network share

The user has appropriate permissions to read the share, and the share maps properly. This issue seems to happen only in PowerShell v2.0. If I remove all mapped drives, remap one drive, and run Test-Path: net use /delete * /y net use G:…
user3418092
  • 83
  • 1
  • 1
  • 3
7
votes
5 answers

Get full computer name from a network drive letter in python

I am using python to populate a table with the file pathways of a number of stored files. However the pathway needs to have the full network drive computer name not just the drive letter, ie //ComputerName/folder/subfolder/file not…
Cjd111
  • 171
  • 1
  • 2
6
votes
5 answers

How to ensure network drives are connected for an application?

I have a desktop Windows application that is installed in small office environments. The application uses an .MDB database file as its database which is stored on a network drive. Configuration files specify the path of the .MDB file on the server…
CJ7
  • 20,640
  • 59
  • 173
  • 305
1
2 3
22 23