Windows 10: What command line code can find the most recent file in a folder ?

Discus and support What command line code can find the most recent file in a folder ? in Windows 10 Gaming to solve the problem; I want to copy by batch file, the most recent file in a Windows10 folder to another folder. Copying I have off-pat, but finding the most recent, I do... Discussion in 'Windows 10 Gaming' started by JosephPHILIPPA, Oct 10, 2021.

  1. What command line code can find the most recent file in a folder ?


    I want to copy by batch file, the most recent file in a Windows10 folder to another folder. Copying I have off-pat, but finding the most recent, I do not.

    :)
     
    JosephPHILIPPA, Oct 10, 2021
    #1
  2. Naki Win User

    GPU-Z what command line parameter ?

    Suggestion: /? (-?) and /help (-help) command-line arguments to show a list of all possible arguments in a small window. *Smile What command line code can find the most recent file in a folder ? :)
     
  3. ryanly Win User
    GPU-Z what command line parameter ?

    Current /? (-?) or / help (-help) parameter is invalid
     
    ryanly, Oct 10, 2021
    #3
  4. slozomby Win User

    What command line code can find the most recent file in a folder ?

    Recent File List

    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file1

    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file2
    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file3
    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file4
    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file5
    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file6
    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file7
    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file8
    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file9
    ...

    you get the idea. ( too lazy to put it in a for loop and test it.

    or just open regedit and remove all the fileX from that key.
     
    slozomby, Oct 10, 2021
    #4
Thema:

What command line code can find the most recent file in a folder ?

Loading...
  1. What command line code can find the most recent file in a folder ? - Similar Threads - command line code

  2. My download folder doesn't show the most recent files

    in Windows 10 Software and Apps
    My download folder doesn't show the most recent files: i don't know why, but my download folder recently stopped showing newer files, i tried searching but no one seemed to have this problem https://answers.microsoft.com/en-us/windows/forum/all/my-download-folder-doesnt-show-the-most-recent/9ad2e2bd-ba08-4858-be0c-544bcef11d98
  3. What command line code can find the most recent file in a folder ?

    in Windows 10 Network and Sharing
    What command line code can find the most recent file in a folder ?: I want to copy by batch file, the most recent file in a Windows10 folder to another folder. Copying I have off-pat, but finding the most recent, I do not....
  4. What command line code can find the most recent file in a folder ?

    in Windows 10 Software and Apps
    What command line code can find the most recent file in a folder ?: I want to copy by batch file, the most recent file in a Windows10 folder to another folder. Copying I have off-pat, but finding the most recent, I do not....
  5. can a command line action as batch file

    in Windows 10 Support
    can a command line action as batch file: I have a run a action on one of my programs to disable it (when required) quite regularly from an elevated cmd prompt... Can it be made into a bath file (.bat) and executed as and when required? 174187
  6. Deleting files with command line

    in Windows 10 Network and Sharing
    Deleting files with command line: I used del filename and it was successfully deleted. I also used dir to double check. However, when I checked the Recycle Bin; the file wasn't found inside. Was this file permanently deleted?...
  7. Most useful commands for PowerCFG command line

    in Windows 10 News
    Most useful commands for PowerCFG command line: [ATTACH] [ATTACH]Power Configuration or powercfg.exe is a command-line tool in Windows which allows you to configure power system settings. It is especially useful for laptops which run on battery and will enable you to configure hardware-specific configurations which are...
  8. Notepad command line to open file and find text ?

    in Windows 10 Support
    Notepad command line to open file and find text ?: Hello & Thanks , I would like to call Notepad from another program sending to it a command line to open Filename and FIND a specific text . Plz , How can this be done ? Thanks 133107
  9. Can Your Phone app find the most recent photos?

    in Windows 10 Network and Sharing
    Can Your Phone app find the most recent photos?: I use OfficeLens to take photos, which I send to the PC using Your Phone app. This app is supposed to show the most recent photos, I know that. However Your Phone doesn’t show the most recent photos, it only shows photos I take with the camera app even though I will save...
  10. WinSAT Prepop Command-line what is it ??

    in Windows 10 Support
    WinSAT Prepop Command-line what is it ??: WinSAT Prepop Command-line what is it ?? I just ran in on cmd [img] [img] 116570