network-drive

Windows network drive from PHP running on a linux environment

孤者浪人 提交于 2019-12-11 12:04:11
问题 I have to check something if it works. We have limited access to a Debian server via ssh. We have a PHP intranet solution running on this server, so we can run PHP scripts. We got the following scenario: A windows network drive given: \\IP\folder$ We have to read this windows network drive from PHP under linux. I never did such thing. We have no any rights to mount anything on the server. This drive may or may not accessable from the linux machine, I don't know. (I guess it's accessable, due

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

Issue with mapping network drives using New-PSDrive

微笑、不失礼 提交于 2019-12-10 22:36:32
问题 I am running a powershell based multithreaded application in which each thread (.net task) needs to copy a bunch of files from one machine to another with a different credential. This is the script which runs in each .net task New-PSDrive -Name tid -PSProvider FileSystem -Root \\sname\c$\Users\<Uname>\Appdata\Local\temp\<myapp>\tid -Credential $cred Copy-Item -Source c:\test\* tid:\ Remove-PSDrive -Name tid At any point there could be a bunch of tasks executing this script. Most of the time

How does one map network drive from windows service?

梦想与她 提交于 2019-12-10 19:07:11
问题 I'm trying to map network drive from windows service, I use batch file for executing the following command NET USE U: \\192.168.55.6\folder password While executing batch file either in service constructor or in onstart event, drive is not mapped? Process process = new Process(); process.StartInfo.FileName = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "\\MAP.BAT"; process.StartInfo.CreateNoWindow = false; process.Start(); How does one map

Get username of user who has file open on network drive - Microsoft Office Style

二次信任 提交于 2019-12-10 07:39:16
问题 I would like to add user friendly file locking to a software running under Windows (Windows 7 mostly), written in C# . I already achieved the file locking part, by keeping the files in use "open" in the corresponding process. What I now still would like to add is recognition of the user who has a file currently open/locked. The files being accessed lie on a mapped network drive , used by different users on different computers. When a file is locked and a second person tries to open the file,

Get full computer name from a network drive letter in python

那年仲夏 提交于 2019-12-10 04:19:07
问题 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 P:/folder/subfolder/file I have investigated using the win32api, win32file, and os.path modules but nothing is looking like its able to do it. I need something like win32api.GetComputerName() but with the ability to drop in a known drive letter as an argument and

How to publish file server service to local network?

依然范特西╮ 提交于 2019-12-06 06:09:56
问题 My question is about "automatic discovery of file server service on local network". I want to implement a service which is file server basically and publish it on local network. Client PC which is connected to local network should find this service automatically and map (mount) network drive without user's intervention. As I look through web shortly, I think "Bonjour" for Apple and "UPnP" for Windows is best option to implement this kind of feature. Is this right assumption? Do you know any

Get username of user who has file open on network drive - Microsoft Office Style

那年仲夏 提交于 2019-12-05 13:52:54
I would like to add user friendly file locking to a software running under Windows (Windows 7 mostly), written in C# . I already achieved the file locking part, by keeping the files in use "open" in the corresponding process. What I now still would like to add is recognition of the user who has a file currently open/locked. The files being accessed lie on a mapped network drive , used by different users on different computers. When a file is locked and a second person tries to open the file, he should be confronted with a dialog, similar to the "File in use"-dialog from the Microsoft Office

check if network drive exists with timeout in c#

99封情书 提交于 2019-12-05 03:25:01
问题 i created a windows service that move files around between the server's hard drive (where the service is installed) to the network drive mapped in the server. one of the problems I encountered while creating a solution was network problems. how do i check if a network drive exists while setting a timeout in checking it? If it times out, I catch the exception and retry in X number of minutes and leave items in queue. thanks! 回答1: Put the call in a seperate thread and close the thread after a

How to publish file server service to local network?

荒凉一梦 提交于 2019-12-04 09:50:47
My question is about "automatic discovery of file server service on local network". I want to implement a service which is file server basically and publish it on local network. Client PC which is connected to local network should find this service automatically and map (mount) network drive without user's intervention. As I look through web shortly, I think "Bonjour" for Apple and "UPnP" for Windows is best option to implement this kind of feature. Is this right assumption? Do you know any other good suggestion? How about Linux? UPDATE: FYI - I finished my zero-configuration SW implementation