Windows 10: Forfiles error

Discus and support Forfiles error in Windows 10 Customization to solve the problem; I am running Windows 10 and upon startup I am getting a notification titled C:\WINDOWS\system32\forfiles.EXE...sometimes it loads Errors and other... Discussion in 'Windows 10 Customization' started by JohannaKemp1, May 7, 2019.

  1. Forfiles error


    I am running Windows 10 and upon startup I am getting a notification titled C:\WINDOWS\system32\forfiles.EXE...sometimes it loads Errors and other times it remains blank. My computer performance does not seem to be impacted. Can anyone advise?

    :)
     
    JohannaKemp1, May 7, 2019
    #1
  2. Landyman Win User

    DOS CMDs - For and Forfiles to rename files


    I have just bought a Surface 4 Pro with k'brd. I find that one old program will no longer run correctly, so need to make a Batch file to replace it.

    Windows 10 screen capture produces files all with the same name, appending a serial number.

    Capture.exe produces a .bmp file with the date/time in the file name. I wish to do this.

    I've investigated the FOR and FORFILES CMDs, but so far no success.

    This code will get the system date:-

    :: Get the date/time
    FOR /f %%a in ('WMIC OS GETLocalDateTime ^| find "."') DO Set _DTS=%%a
    Set _datetime=%_DTS:~0,4%-%_DTS:~4,2%-%_DTS:~6,2%@%_DTS:~8,2%-%_DTS:~10,2%-%_DTS:~12,2%
    Echo Year-MM-Day@HR-Min-Sec
    Echo %_datetime%



    This code with FORFILES will get the file's parameters:-


    @file – Name of the file(includes extension)
    @fname – Name of the file excluding extension @Ext – Extension of the file
    @fdate – Last modified date of the file
    @ftime – Last modified time of the file

    However I can't get them to work together.

    W 10 stores screen dumps (<Win> + <PrtScn>) in a folder, 'Screenshots', under 'C:\Users\myname\Pictures\'.

    A file could be: 'Screenshot (5).png with a UK date of 18/01/2017 21:33

    I want to rename this file:- 'Cap_170118_213315.png'. I've included the seconds, as this is very important and used a 2 digit year as YYMMDD_HHMMss.

    Any suggestings would be most welcome.
     
    Landyman, May 7, 2019
    #2
  3. Kari Win User
    DOS CMDs - For and Forfiles to rename files


    My suggestion:

    I am normally one of those users who always ask why use a third party solution if Windows native tools can do the same job, but in this case I wholeheartedly recommend using Screenpresso, the best third party screenshot tool I have used.

    It names the screenshots almost as you'd prefer, naming them YYYY-MM-DD_HHhMM_SS.png (that red h is a letter h Screenpresso puts between HH and MM):


    Forfiles error [​IMG]

    It let's you freely modify keyboard shortcuts:


    Forfiles error [​IMG]

    The free version has some limitations but in all honesty I have not even noticed what the limitations are; all screenshots (and annotations in screenshots) in all my posts and tutorials are made with free version of Screenpresso. Here's a sample, a recent tutorial with several screenshots, annotated and clean: UUP to ISO - Create Bootable ISO from Windows 10 Build Upgrade Files

    (Filenames shown in my screenshots are not actual filenames created by Screenpresso because I use WYSIWYG editor when posting here, pasting screenshots directly in post from clipboard without uploading them first. This makes them all use a default name image.png when you check them here.)

    Download: Download | Screenpresso
     
    Kari, May 7, 2019
    #3
  4. KieX Win User

    Forfiles error

    Error: No work available to process

    Hmm. Either it's put out errors and WCG is limiting the work units available, or the project list may not be set to supply other WU when one runs out. (if the problem lies here and not on your end)

    On the options to your left, if you go into Results Status, select the computer from Device Name and then look through results see if either they were returned late, errors or any other kind of issue that would stop the servers supplying WU from that perspective.

    If there are no errors then it's maybe down to your project list. So selecting Device Manager from the left menu and then clicking on the profile assigned to that computer and make sure that it's assigned to receive WU for other projects if they run out.

    At least those steps will rule out problems from the WCG end.
     
    KieX, May 7, 2019
    #4
Thema:

Forfiles error

Loading...
  1. Forfiles error - Similar Threads - Forfiles error

  2. Network Error 0x800704f8, Windows cannot access [Fix]

    in Windows 10 News
    Network Error 0x800704f8, Windows cannot access [Fix]: [ATTACH]Some users have reported that when they try to access a shared folder, they receive a Windows cannot access network error with error code 0x800704f8. For some users, this error occurred while accessing a network drive or NAS after upgrading their Windows to the next...
  3. Disk is either Full or Read only error on Windows 11

    in Windows 10 News
    Disk is either Full or Read only error on Windows 11: [ATTACH]The C drive on a Windows PC is the most important drive for running the Windows OS and other installed programs. By default, everything is saved to this drive unless we choose to save to a different drive. However, as time goes by and our use of it increases, the data...
  4. Forfiles "del @file" using wrong path for delete

    in Windows 10 Gaming
    Forfiles "del @file" using wrong path for delete: I have a batch using forfiles command to regularly delete old files.forfiles /p C:\A\B\C\D\E\ /s /m *.abc /d -10 /c "cmd /c del @file"It works well so far on 5 PCs WIN7 and WIN10, but on one also Win7 doing it wrong:Finds the file, so echo @path is C:\A\B\C\D\E\file1.abc is...
  5. Forfiles "del @file" using wrong path for delete

    in Windows 10 Software and Apps
    Forfiles "del @file" using wrong path for delete: I have a batch using forfiles command to regularly delete old files.forfiles /p C:\A\B\C\D\E\ /s /m *.abc /d -10 /c "cmd /c del @file"It works well so far on 5 PCs WIN7 and WIN10, but on one also Win7 doing it wrong:Finds the file, so echo @path is C:\A\B\C\D\E\file1.abc is...
  6. How to schedule ForFiles command on Shared Network drive

    in Windows 10 News
    How to schedule ForFiles command on Shared Network drive: Although the ForFiles command runs locally, you can use it on a shared network or mapped drive on Windows 10. If you want to schedule ForFiles command on a shared network in Windows 10, you can take the help of Task Scheduler. As you cannot run the command independently, it...
  7. ForFiles command lets you manage files & folders on Shared Network in Windows 10

    in Windows 10 News
    ForFiles command lets you manage files & folders on Shared Network in Windows 10: ForFiles command lets you manage or delete folders, complying with some criteria on Windows 10. If you want to use ForFiles command on a shared network folder or a mapped network drive, here is how you can do it using the Command Prompt. ForFiles is a command that you can...
  8. Help using Forfiles command

    in Windows 10 Network and Sharing
    Help using Forfiles command: Hello everyone, I am having a syntax error when executing my forfiles command. My proposal is to develop a .bat script to everyday copy the last file backup from a folder to the one drive folder located in another drive "K" This is the command I am using forfiles...
  9. Forfiles Error Invalid Agrument

    in Windows 10 Customization
    Forfiles Error Invalid Agrument: Not sure why return error Invalid Agrument Some one can see the issue. Thank you. forfiles /p C:\Program Files\MicrosoftSQLServer\MSSQL15.SQL\MSSQL\Backup\ -s -m *.bak /D -2 /C "cmd /c del /q @path"...
  10. DOS CMDs - For and Forfiles to rename files

    in Windows 10 Support
    DOS CMDs - For and Forfiles to rename files: I have just bought a Surface 4 Pro with k'brd. I find that one old program will no longer run correctly, so need to make a Batch file to replace it. Windows 10 screen capture produces files all with the same name, appending a serial number. Capture.exe produces a .bmp...

Users found this page by searching for:

  1. windows forfiles error

    ,
  2. forfiles error code