hassaanch / Consume-File-Share

sample code to download file from FileShare

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consume-File-Share

sample code to download file from FileShare

App.config

In connection string assign Storage Account Name to "AccountName" and Storage Account Key in "AccountKey"

Program.cs

In program.cs file you need to assign values to variable like

  • _cloudDirRef is the directory that has the file to download in fileshare
  • _referenceFile is the file to download from fileshare
  • _fileShareName is the name of file share service
  • _connectionString is define in App.config
  • _referenceDirectory is the directory containing the file
  • _localPath is the path where the file needs to save ie: $@"customDirectory{_referenceDirectory}"

About

sample code to download file from FileShare

License:GNU General Public License v2.0


Languages

Language:C# 100.0%