fileshare

Accessing files beyond MAX_PATH in C#/.NET

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 04:07:07
问题 BACKGROUND I need to write a tool using .NET version 2.0 at highest (using something off the shelf is not an option for this client for political, commercial, and confidentiality/trust reasons) to migrate files from one server to another over the network. The servers are file servers for local teams, and certain team folders need to be migrated to other servers to facilitate a reorganisation. The basic idea is we read each file and stream it over the network out of hours and after a few days

Does opening a file with Share-Delete allow others to write?

喜你入骨 提交于 2019-12-11 03:39:58
问题 The FileShare enumeration offers various flags such as Read, Write, Delete, ... . Normally I'd think that sharing a file for deletion only allows deletion but nothing else (like reading). However, I remotely recall that Windows only differentiates between read-only and full access to files, so actually sharing for deletion allows writing to the file as well. Sadly this is from many years back and I neither found the original source nor any related info. Is there a reliable spec on the actual

How to upload artifact to network drive using gradle?

折月煮酒 提交于 2019-12-11 00:48:52
问题 I am reading this: http://www.gradle.org/docs/current/userguide/artifact_management.html to understand how to publish/upload my artifact to a network drive/fileshare which is a requirement (we have a maven repo up and running but some artifacts needs to be dumped on a fileshare). The examples I have found are more focused on deploying to repositories, maven, ivy, etc. I have a simple eclipse java project that I build using gradle 1.2 with the following build.gradle file: apply plugin: 'java'

Unable to share image using DataTransferManager in Windows 10

泄露秘密 提交于 2019-12-10 15:55:20
问题 Requirement: Share a text and image using DataTransferManager into Facebook in Windows 10. Problem: Unable to share image. Below shown is the code I used, private async void DataTransferManager_DataRequested(DataTransferManager sender, DataRequestedEventArgs args) { DataRequestDeferral deferral = args.Request.GetDeferral(); args.Request.Data.Properties.Title = "Sharing sample"; args.Request.Data.SetText("Testing share in universal app"); var imageUri = "http://cdn.vrworld.com/wp-content

How to work around LocalFileSettingsProvider requiring Full Control/OwnerRights

隐身守侯 提交于 2019-12-07 05:06:30
问题 In my .NET client application I use the default settings provider with Scope=User and Roaming=True. This works fine in most environments, no matter if client or Terminal Server, except for a customer with a Citrix Terminal Server farm. Whenever Properties. Settings.Default.Save() is called, the following exception is thrown: System.UnauthorizedAccessException: Attempted to perform an unauthorized operation. at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name,

Mini server implementation in Objective C

十年热恋 提交于 2019-12-06 06:09:53
问题 I'm trying to implement a little server service in order to upload files via web browser to my iOS app. An example of this feature is implemented in the following app: http://itunes.apple.com/uy/app/files-document-reader/id294150896?mt=8 seems to be very simple, but don't know where to start. I've been also looking for clues or some sample codes about this kind of implementation with no success, but maybe just don't know how to google the problem correctly. Any clues, guides, links, etc...?

Share extension react native - expo

寵の児 提交于 2019-12-05 12:43:30
I have created a react-native app using expo . Now I am looking for share-extension to the app to import CSV data from email attachment to my app. I have tried npm package but that does not work for me(I was not able to build my project with that npm package in Xcode) I think react-native or expo does not have any share API In this picture, you can see how he got the option to import data into the app. I understand that without share extension API, I think react-native and Expo both are useless because you can create the app but you don't expand it. Looking for the solution or any other

Mini server implementation in Objective C

拟墨画扇 提交于 2019-12-04 09:57:58
I'm trying to implement a little server service in order to upload files via web browser to my iOS app. An example of this feature is implemented in the following app: http://itunes.apple.com/uy/app/files-document-reader/id294150896?mt=8 seems to be very simple, but don't know where to start. I've been also looking for clues or some sample codes about this kind of implementation with no success, but maybe just don't know how to google the problem correctly. Any clues, guides, links, etc...? Thanks in advance froh42 Here is a wrapper to embed the moongoose http server in your iphone application

Copy files over network via file share, user authentication

杀马特。学长 韩版系。学妹 提交于 2019-12-03 19:13:52
问题 I am building a .net C# console program to deploy file to a windows file share server (folder that is being shared). The path is :: \\192.168.0.76\htdocs\public On running I am getting the error: [09:35:29]: [Step 1/3] Unhandled Exception: System.UnauthorizedAccessException: Access to the path '\\192.168.0.76\htdocs\public' is denied. [09:35:29]: [Step 1/3] at DeployFileShare.Program.CopyDir(String source, String dest, String[] exclude, Boolean overwrite) [09:35:29]: [Step 1/3] at

Tool or usage example to generate and view SAS (Shared Access Signatures) of both Azure Block Blob and Azure File Share

末鹿安然 提交于 2019-12-02 05:34:50
问题 I am looking for a tool or usage example to generate and view SAS (Shared Access Signatures) of both Azure Block Blob and Azure File Share. There are lots of examples for Block Blob and Containers but what about Azure File Share SAS examples or tools. 回答1: Ability to create Shared Access Signature on a File Service Share is announced in the latest version of REST API. You must use Storage Client Library 5.0.0 for that purpose. First, install this library from Nuget: Install-Package