shared-directory

Accessing a shared file?

守給你的承諾、 提交于 2019-12-11 10:16:39
问题 I'm trying to read a file body from a Windows shared folder by it's UNC path, and getting this exception: The process cannot access the file '\\<someIP>\logs\LogFiles\W3SVC1\u_ex141017.log' because it is being used by another process. However, this file isn't really locked by any process. I can view it from my PC using a text editor, etc. I'm using this code to read the file: var logFile = File.ReadAllText(logPath); and var logFile = (string)null; using (var fileStream = new FileStream

How to share a folder in a asp.net web application with a win form client?

谁说胖子不能爱 提交于 2019-12-11 06:25:45
问题 In this asp.net web application, users can upload files to the server through a web interface. All the uploaded files are save in a server side folder. If I want to create a new win form desktop client (actually, its a WPF application) which can be used to upload files to that same server side folder as web interface does, how can I share that server side folder with that win form client? Any alternative suggestions are also welcome. thanks for all in advance. 回答1: Like answered in What is

Accessing a shared folder over a network in adobe air

拜拜、爱过 提交于 2019-12-11 03:13:42
问题 I'm trying to write to a shared folder on a windows network in AIR using the File class. I don't understand how to format the path to the shared folder. I get one of who errors with everything I've tried: "The specified folder does not exist" and "there is a parameter missing". The UNC path to access this folder from my computer is like this: \\localdev01\platefiles Here are the different path formats I've tried to access this folder: \\localdev01\platefiles /localdev01/platefiles file:/

Vagrant and NPM install on shared folder

南楼画角 提交于 2019-12-10 17:55:00
问题 I have a vagrant VM with Ubuntu 14 64bit. My host is Windows 8.1. I'm trying to make an npm install on a shared folder (a nodejs app) but even with a npm install --no-bin-links it fails with npm ERR! tar.unpack untar error /root/.npm/node-pre-gyp/0.6.8/package.tgz npm ERR! tar.unpack untar error /root/.npm/node-pre-gyp/0.6.8/package.tgz npm ERR! tar.unpack untar error /root/.npm/lodash-node/2.4.1/package.tgz npm ERR! Linux 3.2.0-23-generic npm ERR! argv "/usr/local/node/node-v0.12.7/bin/node"

Checking the permissions of a shared folder on another Windows failed with access denied?

一个人想着一个人 提交于 2019-12-08 13:01:48
问题 i'm writting some c++ code retrieving the permissions of shared folds in another computer, by "permissions" i mean something like which user or group is permitted or denied to this folder. Here's the function to get the NTFS security descriptor of a shared folder(named strFileName) in a certain remote machine(named strServerName whose ip is strServerIP).The question is when i delete the "Everyone" account in the "Share" tab of the folder, the GetNamedSecurityInfo function would fail with

Using batch file and WinSCP to download files from the FTP server to file server (shared folder)

若如初见. 提交于 2019-12-08 06:40:23
问题 I am using the following code to transfer files from my FTP server to my local machine which works fine. "C:\Program Files (x86)\WinSCP\WinSCP.com" /command ^ "open ftp://rnandipati:J13@Files8.cyberlynk.net/kgptel/" ^ "lcd ""C:\\rnandipati\KGP\File History""" ^ "get *.xls>1D" ^ "rm *.xls<1D" ^ "exit" Now, I access my server using this path \\fs01\\Reporting\KGP\File History When I put this path in place of my local directory path, it shows an error that the system could not find the file

How does one configure shared folders to automount for arch/manjaro linux VM in virtualbox?

廉价感情. 提交于 2019-12-08 05:31:56
问题 I have a manjaro/arch virtual machine running in virtualbox with a windows 10 host. I have configured the shared folder I want to share in virtualbox as c:\tfs with the name tfs but it doesn't show up in the linux vm anywhere. I am able to mount it manually, but it won't auto-mount. I created the /media and /media/tfs folder in the VM, since it did not exist, and now the following command successfully manually mounts my folder sudo mount -t vboxsf tfs /media/tfs . How do I get the automount

Jenkins wrong volume permissions

蹲街弑〆低调 提交于 2019-12-06 18:52:31
问题 I have a virtual machine hosting Oracle Linux where I've installed Docker and created containers using a docker-compose file. I placed the jenkins volume under a shared folder but when starting the docker-compose up I got the following error for Jenkins : jenkins | touch: cannot touch ‘/var/jenkins_home/copy_reference_file.log’: Permission denied jenkins | Can not write to /var/jenkins_home/copy_reference_file.log. Wrong volume permissions? jenkins exited with code 1 Here's the volumes

Trouble accessing network share from asp.net web form

你说的曾经没有我的故事 提交于 2019-12-06 16:33:16
I have an asp.net webform which will display a PDF file. This pdf is stored on a network share on another server. The share has read permissions for everyone. When I try to reference like \\server\sharename\file.pdf I get the following error: Server Error in '/NCLWeb' Application. HTTP Error 400 - Bad Request. I've also tried variation with "file://" in front, and reversing the slashes. What am I doing wrong? How should I properly reference this? EDIT: I am testing the code using Visual Studio's built in development server. Code usage includes: Response.Redirect(@\\server\sharename\file.pdf);

Using batch file and WinSCP to download files from the FTP server to file server (shared folder)

纵然是瞬间 提交于 2019-12-06 16:27:29
I am using the following code to transfer files from my FTP server to my local machine which works fine. "C:\Program Files (x86)\WinSCP\WinSCP.com" /command ^ "open ftp://rnandipati:J13@Files8.cyberlynk.net/kgptel/" ^ "lcd ""C:\\rnandipati\KGP\File History""" ^ "get *.xls>1D" ^ "rm *.xls<1D" ^ "exit" Now, I access my server using this path \\fs01\\Reporting\KGP\File History When I put this path in place of my local directory path, it shows an error that the system could not find the file specified and error changing directory. Thanks. Martin Prikryl A UNC path cannot be a working directory in