Windows 10 file caching - how to prevent it!!!!

  1. Posts : 2
    Windows 10

    Windows 10 file caching - how to prevent it!!!!


    I assume that my windows version number is Windows 10 and not the Windows build number.....

    I am just transferring stuff from my Windows 7 laptop to my new windows 10 desktop.

    I have a batch file that automatically selects various directories before running a base program based upon the user input. This was giving a 'Permission Denied' error when writing the results of a copy operation to /dev/nul.

    Thinking that this was the problem I removed the redirection in the batch file and run it again, with the same result and exactly the same command lines as the original. I checked the batch file in notepad and it was the one I had made the modifications to. I checked the properties of the short cut and it was pointed to the correct batch file.

    I copied the batch file to another name but it retained the original lines when run. I deleted the batch file expecting a 'not found' error message but the original batch content still ran (even though when you looked in file explorer the batch file was missing).

    So, this file is cached somewhere but I don't know where. Does anyone know how to clear the cache ?

    Thanks and regards,

      My Computer

  2. Ztruker's Avatar
    Posts : 13,524
    Windows 10 Pro X64 20H4 19042.928

    Try where xxxxxxxxx.bat (xxxxxxxx is the name of the batch file). See if it can tell you where it's located.
      My Computers


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

Designer Media Ltd
All times are GMT -5. The time now is 15:13.
Find Us

Windows 10 Forums