Hidden Files Won't overwrite???


  1. Posts : 112
    windows 7 Ultimate 32bit & 64bit
       #1

    Hidden Files Won't overwrite???


    Hey guys, I'm doing a little bit of coding, but im having trouble with the updated files.

    C:\Program Files\MetaTrader - Alpari UK2\experts\indicators

    so this is the folder im working in, and Im using a coding editor to load the file, rewrite the code and then save over it. But i notice when i get back into my Metatrader software, the code is not updated. So I deleted the old file and re-saved from the editor with the same name, but i keep getting the do u want to overwrite message even though i just deleted that file. So i saved the code on the desktop with a new name, and then copied it back to that indicator folder. and it works, but now e every time i go into my software its showing that i still have all the old versions in there still.

    "I have show hidden file checked on my folder options" How do i delete all of them, and is there a write protections on this folder , thats not allowing the updates when i try to re-save over it?

    thanks.
      My Computer


  2. Posts : 17,796
    Windows 10, Home Clean Install
       #2

    Ifd you cannot just uncheck the read only. Give yourself permissions, if that is not possible give yourself ownership first.

    http://www.vistax64.com/tutorials/67...ship-file.html
    https://www.sevenforums.com/tutorials...rmissions.html
      My Computer


  3. Posts : 5,642
    Windows 10 Pro (x64)
       #3

    It is because you are working directly in Program Files. either run your application as Administrator or stop working directly in the Program Files directory. Problem solved.
      My Computer


  4. Posts : 2,528
    Windows 7 x64 Ultimate
       #4

    Yes, programs are no longer allowed to modify files within the program files folder unless run as administrator.

    It's a bad habit that needs to be broken :)

    All program settings/data files should be stored under the users folder. There are a variety of ways and places to store things under there. Use the "SHGetFolderPath" API call to find your users Documents folder (if data is to be user visiable) or other special folder for hidden application data.
      My Computer


  5. Posts : 112
    windows 7 Ultimate 32bit & 64bit
    Thread Starter
       #5

    this sounds like the easier option, i donit see why i would have to mess around with the registry to have control of my own computer!!

    Even if i run as admin, the files i deleted, don't appear to be in explorer, but once i enter my software, it shows that its still being loaded. I would like to get rid of these old revisions.



    logicearth said:
    It is because you are working directly in Program Files. either run your application as Administrator or stop working directly in the Program Files directory. Problem solved.
      My Computer


  6. Posts : 2,528
    Windows 7 x64 Ultimate
       #6

    What you need to realize is that if you, as a user, have "complete control" over your computer. Then any program you ever run, malicious on purpose or accidentally ALSO has "complete control" over you r computer.

    You in fact DO have complete control when it is necessary, but 99.999% of the time you should not need to excersize it, therefor it should not be active 100% of the time leaving your system wide open to attck or simple degeration by bad software (nor anyone elses if you are writing said software :) )
      My Computer


  7. Posts : 5,642
    Windows 10 Pro (x64)
       #7

    hastyle said:
    Even if i run as admin, the files i deleted, don't appear to be in explorer, but once i enter my software, it shows that its still being loaded.
    Cause they are virualized. Windows, to avoid errors, virutualizes files that are trying to be written to protected areas. They are in turn put here: C:\Users\[username]\AppData\Local\VirtualStore
      My Computer


  8. Posts : 112
    windows 7 Ultimate 32bit & 64bit
    Thread Starter
       #8

    ahhh! i see them now, thank you.

    logicearth said:
    hastyle said:
    Even if i run as admin, the files i deleted, don't appear to be in explorer, but once i enter my software, it shows that its still being loaded.
    Cause they are virualized. Windows, to avoid errors, virutualizes files that are trying to be written to protected areas. They are in turn put here: C:\Users\[username]\AppData\Local\VirtualStore
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:44.
Find Us