Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7576023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:49:25+00:00 2026-05-30T16:49:25+00:00

Already i posted my earlier question about my FTP process (simple and short ),it

  • 0

Already i posted my earlier question about my FTP process (simple and short ),it will check the ftp server directory and match the files and download it,am trying to do the same thing using file share but little bit more logical way.

Scenairo like this ,my db tell my file name (e.g text.exe) and the location (Detroit) based on the location (i have config file ,eg Detroit Value ://10.26.10.127/testfolder, Washington Value://10.26.10.127/testfolder).

then i will copy text.exe from (//10.26.10.127/testfolder) to my local drive.

Step 1:Get the file list from FileShare
Step 2:store the filename in the stringbuilder
step 3:use the condition (contains) to match the file name
Step 4: Copy from fileshare location to local location.

Please someone advise me where to start ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T16:49:26+00:00Added an answer on May 30, 2026 at 4:49 pm

    This is one way of doing it starting from the data.

    System.Data.DataTable dt; //Fill your data into this datatable
    
    string destPath = "Drive:\\Your_destination_path";
    string fullSrcPath = null;
    
    foreach(System.Data.DataRow dr in dt.Rows){
        fullSrcPath = dr["PathColName"].ToString() + "\\" + dr["fileColName"].ToString();
        if(System.IO.File.Exists(fullSrcPath)){
            System.IO.File.Copy(fullSrcPath,destPath+ "\\"+dr["fileColName"].ToString());
        }
    }
    

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I already posted a question about this ( Abandoned instances that will not continue
I have already posted a question about this, but the situation has changed sufficiently
I posted a question similar to this earlier, however, after thinking about it and
I have already posted another question about this, but no one seemed to know
This is the super simple version of the question I posted earlier (Which I
i already posted this question earlier this week, and still no luck and no
Sorry if the question has already posted, I want to know if GAE support
I know this question was already posted in StackOverflow but I either didnt understand
I posted about this sort of earlier, but I am not sure how to
I know that I was already posted similar question but I just can't find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.