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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:51:14+00:00 2026-06-09T07:51:14+00:00

My program write some files at the windows system path (C:\windows\syswow64…). One of this

  • 0

My program write some files at the windows system path (C:\windows\syswow64…).

One of this files, were deleted for test reason, we’re changing something and we need to delete it. OK, there’s no problem here, the file is gone(almost…).
The problem is, my application still getting the file! It’s fun, cause I really delete the file (shift+del)

I test if file exist with FileInfo class.

I’m going crazy with this. I can’t see where is the mistake.
And sure, in Folder Options is enable to see Hidden and System Files…

Thank you

My code is bellow:

Public Shared Function GetUserConfigFile() As String
    Dim UserConfigFile As String = Metodos.GetUserConfigPath("config.gf")
    'Above we have C:\Windows\SysWOW64\Microsoft\....\config.gf

    Dim ConfigFile As New IO.FileInfo(UserConfigFile)
    ConfigFile.Refresh()

    EventLog.RegisterDebugMessage("ConfigFile.Exists:{0};ConfigFile.Length:{1}", ConfigFile.Exists, ConfigFile.Length)
    If ((ConfigFile.Exists AndAlso ConfigFile.Length = 0) OrElse Not ConfigFile.Exists) Then
        Dim config As StreamWriter = IO.File.CreateText(UserConfigFile)
        config.WriteLine("<?xml version=""1.0""?><cnfg></cnfg> ")
        config.Close()
        config.Dispose()
    End If
    EventLog.RegisterDebugMessage("config.gf -> {0}", IO.File.ReadAllText(UserConfigFile))
    '''''''''''And here it's show me the content of the file... -.-''''''

    Return UserConfigFile
End Function
  • 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-09T07:51:15+00:00Added an answer on June 9, 2026 at 7:51 am

    On a very similar note to what Mark Peters said, another thing that could be happening is UAC Data Redirection because you do not have write permissions to that folder so what you are really seeing is files located in %LOCALAPPDATA%\VirtualStore\Windows\System32. Does your application run with administrative privileges, if not, do the files go missing when it does?

    I have a much longer post describing a similar issue over on Super User.

    As an aside why do you “need” to have your program be accessing files in the windows directory? What are you doing that adds that requirement to your program?

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

Sidebar

Related Questions

I need to write some input data files for a python program, and I
My Qt/C++/Windows program needs to be able to delete some files, if possible, without
Some overflow runtime error happens when my C++ program is trying to write some
I am supposed to write a program that gets some PNG images from the
I want to write a program to hash some data and preferably i would
Say one part of a program writes some stuff to a socket and another
I'm confused with the byte order of a system/cpu/program. So I must ask some
I have written a wizard in C++ which installs some files to the program
System.AccessViolationException was unhandled Message=Attempted to read or write protected memory. This is often an
Some explanation: for a project I'm working on I have to write a program

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.