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 8978793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:41:43+00:00 2026-06-15T19:41:43+00:00

I have a program that users are using that will take a file from

  • 0

I have a program that users are using that will take a file from their system and move it to a network drive in order to be processed and stored. The move itself works fine and everything works properly, unless they are moving a big file and for some reason close the program early and stop the process.

The code I use to move the file is

try { File.Move(docFilepath, docFilePathTo); }
catch (Exception ex)
{
    docName = config.autoRename(docName + docExt.ToUpper()).Split('.')[0];
    File.Move(docFilepath, frmMain.Scans2LF + docName + docExt.ToUpper());
}

Again this works fine. I was wondering if there was a possibility to have a progress bar to display to the user when their file was actually fully in the new location.

I have looked up a couple questions that have a semi relevance to this but not any answer that would work for my situation. Changing the system for moving the file is not an option for me so i am stuck trying to find a way for progress or completion to be finished.

Edit

I can possibly look into changing the way files are moved, main problem would be explaining it so that my boss wouldn’t think its a bad idea to change things that work (if people don’t close the program…..)

End Edit

I thought of using a look-up for the new file in its location and the size is is currently at as a progress meter but not sure if this would work.

Thanks for any input!

  • 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-06-15T19:41:44+00:00Added an answer on June 15, 2026 at 7:41 pm

    If you want to use the Windows file progress dialog just add Microsoft.VisualBasic as a reference and use the FileMove from there

    Microsoft.VisualBasic.FileIO.FileSystem.MoveFile("sorceFile.ext", "destFile.ext", Microsoft.VisualBasic.FileIO.UIOption.AllDialogs); 
    

    This will show the same dialog as widnows does, including Cancel options etc if required.

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

Sidebar

Related Questions

I have a program that will let me manage users on our terminal server
I have a program that uses a licence system for its users. Now I
I am trying to write a program that will take the users input value
I have a chat program that displays I list of online users. The message
I have a program that uses gethostbyname (in Windows) in order to convert IP
I have a C# program that uses System.Data.OracleClient to access an oracle database. The
Question: In terms of program stability and ensuring that the system will actually operate,
I need to write a program that will take a existing local windows user,
I have a C++ program that will run on several machines that use a
I want to create a program that will take user input and create a

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.