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

  • Home
  • SEARCH
  • 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 8772113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:57:40+00:00 2026-06-13T17:57:40+00:00

In C# I create a file in the temp folder named MyDoc.docx I then

  • 0

In C# I create a file in the temp folder named “MyDoc.docx”

I then start the Word process with this file.

Using a FileSystemWatcher I monitor for file changes, and I also monitor when the Word process exits.

I would like to read the changes made tot he document.

However, Word is using a different file name than what I provided. It is using a short (8.3) file name. However, it is not using what I calculate the short file name should be — it seems that Word is using it’s own temporary file name.

How can I determine that my file has changed? How can I know the name of the file Word is using?

Any thoughts?

ANSWER:

Instead of handling changed events for Word files, Renamed events should be handled. When Word saved its document, it saves its temp file and then copies it to the original file name.

  • 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-13T17:57:41+00:00Added an answer on June 13, 2026 at 5:57 pm

    Instead of handling changed events for Word files, Renamed events should be handled. When Word saved its document, it saves its temp file and then copies it to the original file name.

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

Sidebar

Related Questions

When I start my application I create a temp folder: public static File createTempDir(String
I'm currently using a temp folder for my Java application to create a lock
I'm having a problem where we create a file in temp and then move
Idea is this: User uploads a file(s) in some temp folder that exist only
In a java program, I create a file with File temp = new File(temp);
I tried to create jar file using command line that I inserted into java
If I create a file in ubuntu like this: echo asd > file.txt and
I need to create a temp folder where I can put some temp files
I grouped four radio buttons on the radiogroup. There are create file, create folder,
I let the user upload an image. It then creates a temp file but

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.