unc

File.getFreeSpace() Not returning correct value

…衆ロ難τιáo~ 提交于 2019-12-23 15:30:13
问题 I use file.GetFreeSpace() from Java's File class in my application to make sure that there is enough room before transferring files. The path is a unc path that currently has ~5TB of free space on it. However when the above code is ran, the amount of space returned is only 713998336 Bytes (~680MB). I mapped the application to use a different unc path that had in between 100MB and a little over 1GB free (I was adding/removing files to test) and the application reported the correct amount of

List folders and files in a UNC root folder

让人想犯罪 __ 提交于 2019-12-23 02:53:22
问题 I am trying to get folders and files from the root of a UNC path name. I am using Get-ChildItem . I can get results from a subfolder via the UNC path, but not the root folder. If run the command Get-ChildItem \\sf1\user1 from the command line, results are returned. Directory: \\sf1\user1 Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 11/14/2013 3:40 PM 1.ISGROUP When I try to execute Get-ChildItem \\sf1 from the command line I get errors. Get-ChildItem : Cannot find path

Cannot open sharepoint UNC path unless already opened through Windows Explorer

谁说我不能喝 提交于 2019-12-22 09:38:51
问题 I'm hoping somebody can shed light on this, because it has been driving me to distraction. I have a script which will save the reports it creates to a sharepoint document library via UNC path, if the path exists, otherwise it saves to the UNC path of a network drive location as a fallback. I've noticed that checking with test-path , saving (through an msexcel COM object) or trying to open the folder in windows explorer using invoke-item only work if I had already accessed the sharepoint site

Get file from FTP server and copy it to UNC directory

霸气de小男生 提交于 2019-12-21 05:39:07
问题 I am trying to copy a CSV file from an FTP server to a UNC file path. I had it working from FTP to a local path, but it would be better for my project to have it copy to a UNC path. This must all be achieved in batch and FTP commands. This is my code so far: for /f "delims=" %%x in (config.bat) do (set "%%x") echo Start[%time%] >> "%primefolder%\TimeRun.log" REM -------------------------------------------------------------------------------------------- REM Import .csv from the ftp server -

Network Authentication when running exe from WMI

那年仲夏 提交于 2019-12-20 10:37:38
问题 I have a C# exe that needs to be run using WMI and access a network share. However, when I access the share I get an UnauthorizedAccessException. If I run the exe directly the share is accessible. I am using the same user account in both cases. There are two parts to my application, a GUI client that runs on a local PC and a backend process that runs on a remote PC. When the client needs to connect to the backend it first launches the remote process using WMI (code reproduced below). The

How to access Network Share from Raspberry Pi running IoT Core in UWP app

纵饮孤独 提交于 2019-12-20 10:28:03
问题 I have a c# UWP app that I'm intending to run on a Raspberry PI with Windows 10 IoT Core. The problem I have is when I try to connect to a UNC share to copy some files. The network is just a home network with local user credentials, share is on another computer on the same network. When running the app locally I can just use await StorageFolder.GetFolderFromPathAsync(@"\\share\folder"); to connect to the share and this works fine, I'm assuming this is because the credentials I'm using are

Trying to get a Windows Service to run an executable on a shared drive

流过昼夜 提交于 2019-12-20 02:16:20
问题 I have c# that will run in a windows service. I'm trying to use the Process and ProcessStartInfo classes to run an executable. If the executable is on the local drive, no problem. However, I need to run an executable on a shared drive. I've tried using the UNC notation (//machine_name/share_name/directory/runme.exe), but the process seems to hang. The service and shared drive are on Windows XP. Has anyone tackled this issue before? 回答1: The account your service is running as likely does not

Get 'unc' path in OSX of mounted share

你。 提交于 2019-12-19 11:37:09
问题 In python I am trying to get the 'unc' path or server path of a mounted share. So I have a mounted share of: /Volumes/D How do I resolve to this with Python: //192.168.0.7/D Cheers. 回答1: After looking into df , I came up with this which works excellent on OSX: from subprocess import Popen, PIPE df = Popen('df -P /Volumes/link/to/some/folder', shell=True, stdout=PIPE) serverAddress = df.stdout.readlines()[1:][0] serverAddress = serverAddress.split('@')[1] serverAddress = serverAddress.split('/

Run a .NET program from a mapped drive or shared folder

自古美人都是妖i 提交于 2019-12-19 06:16:22
问题 I have written a C# Windows Forms application to merge the files and folders from a remote folder on one machine ("source" folder is a mapped drive - "Z:\folder") with another remote folder on a different machine ("destination" folder is a UNC path to a shared folder - "\\computername\sharedfolder"). I have Full permissions to both folders. When I run the program on my local machine, it works fine, but when I try to run it from from within the source folder it fails with a security exception.

How to read files from a UNC-specified directory in R?

谁说胖子不能爱 提交于 2019-12-19 03:36:49
问题 Is it possible to read files from a UNC-specified directory in R ? I'd like to do it without using any packages beyond the base installation. 回答1: UNC names work fine, you just have to escape them correctly. This works for me: read.csv('\\\\COMPUTER\\Directory\\file.txt') 回答2: adding to nograpes answer ... you can avoid the escaping ugliness by using forward slashes ... this works as well read.csv('//COMPUTER/Directory/file.txt') 回答3: a slightly more cross-platform approach # the two '' are