network-share

Map Network Drive in Visual Basic 2010

一世执手 提交于 2019-12-11 06:52:29
问题 I have spend months now trying to get the Visual Basic 2010 codes on how to map a network drive, disconnect them, and re-map network driver. I will need to be able to map it to the profile folder to something like this: Full path; “\10.10.10.12\Profile folder". I need to log in to have access to the network folder /user:Domainname\UserName Password , then confirm if mapping was successful with a message. After the mapping I will request the profile name and check if such profile folder exists

.NET Deployment to Network Share

我是研究僧i 提交于 2019-12-10 16:46:22
问题 I have a .NET 3.5 application that I wish to install on the client's server and have workstations run it directly from the network share. I've read a bit that seems to suggest this isn't as easy as simply copying the application to the network share like I would for a native exe. Unfortunately, there seems to be a lack of documentation on the correct/best way to do this (via ClickOnce or otherwise). So, how would I go about this type of deployment? Do I just copy the assemblies? Is there

Create smb server in order to share files

*爱你&永不变心* 提交于 2019-12-06 11:53:07
问题 Most of the places online explain how to connect and read data hosted by a smb server. Wikipedia explains more about smb at: http://en.wikipedia.org/wiki/Server_Message_Block So what I am trying to do is to be able to open a file (located on the internet) from windows eplorer as: I need to add this functionality to a program that I am creating. If it is to complicated to create such server I guess I will not do it but I want to try my best. I found this link which might help me do what I am

How to check if network shared EXE file is used by more than one user?

北战南征 提交于 2019-12-06 03:52:41
问题 I have an application which sits on a server in the network shared folder. Many users in network, can use that file simultaneously. I would like to perform an update of that EXE file and to do this, I would like to know who in network (besides me) is currently using that file. Is it possible to check this programmatically? For example: to list all user names who are using that file now? Or atleast to retrieve number of locks on that file? Thanks. 回答1: To list the open shared files in a

GIT central repository on Windows network share

白昼怎懂夜的黑 提交于 2019-12-05 17:02:05
Our company is looking at setting up a central GIT repository. As we are using Windows, we've been looking at using a network share solution, based on the following articles here and here . However, after thinking about this I have some questions. (Warning - I'm a noob at GIT) It seems that this solution might allow developers to cause problems with the repo, by allowing them to map to the drive and play with the files (outside of the GIT client). Is there a way to prevent this? Or do I misunderstand something here? If your using network shares, does the GIT installation on the server actually

Create smb server in order to share files

只愿长相守 提交于 2019-12-04 16:17:21
Most of the places online explain how to connect and read data hosted by a smb server. Wikipedia explains more about smb at: http://en.wikipedia.org/wiki/Server_Message_Block So what I am trying to do is to be able to open a file (located on the internet) from windows eplorer as: I need to add this functionality to a program that I am creating. If it is to complicated to create such server I guess I will not do it but I want to try my best. I found this link which might help me do what I am looking for at: http://www.codeproject.com/Articles/309936/Csharp-NET-Network-File-System-NFS-Server But

Python 2: Get network share path from drive letter

断了今生、忘了曾经 提交于 2019-12-04 02:56:05
问题 If I use the following to get the list of all connected drives: available_drives = ['%s:' % d for d in string.ascii_uppercase if os.path.exists('%s:' % d)] How do I get the UNC path of the connected drives? os.path just returns z:\ instead of \share\that\was\mapped\to\z 回答1: Use win32wnet from pywin32 to convert your drive letters. For example: import win32wnet import sys print(win32wnet.WNetGetUniversalName(sys.argv[1], 1)) This gives me something like this when I run it: C:\test>python get

Exception when specifying defaultProxy in app.config when running NET4.0 application from network share

妖精的绣舞 提交于 2019-12-04 02:19:59
We're seeing a very strange issue when running the following application from a network share under NET4.0. When specifying a defaultProxy section in app.config a System.Net.WebException is thrown. There is no problem when running from a local drive. According to documentation applications will run as full-trust assemblies from a network share so we're assuming this should work just fine. Any ideas how we can work around this problem? Has anyone else experienced this issue or does anyone know why this might be happening? Sample program using System; using System.Net; namespace ProxyTest {

Visual Studio 2012 Network Shares

北城余情 提交于 2019-12-03 07:41:24
I emulate Windows 8 on a VM using Parallels. I store all of my developer projects on my Mac's partition for simplicity and coherence. When I try to build an app (Visual Studio 2012) running off this network share, I get the following compile-time error: Error 1 Error : DEP0700 : Registration of the app failed. Rejecting a request to register from file:///Z:/Users/MY_USER_NAME/Sites/App1/App1/bin/Debug/AppX/AppxManifest.xml because the files are on a network share. Copy the files to the local computer before registering the package. (0x80073cf9) App1 Does anyone know how to solve this issue? I

How can I enumerate network shares and web folders in C#?

拜拜、爱过 提交于 2019-12-01 22:10:04
问题 .Net provides us with a FolderBrowserDialog control to browse for folders. This is however a modal dialog box. I need to create a user control that I can drop onto my form. So, I have been looking at creating my own, where I need to get all local drives, mapped network drives, UNC shares and web folders (WebDAV/SharePoint). I am using Windows 7 and .Net 4.0. Local and Mapped Network Drives I can get the local drives from DriveInfo.GetDrives(). However, these are only showing me the drives