Windows 10: ForFiles command lets you manage files & folders on Shared Network in Windows 10

Discus and support ForFiles command lets you manage files & folders on Shared Network in Windows 10 in Windows 10 News to solve the problem; 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... Discussion in 'Windows 10 News' started by WinClub, May 25, 2021.

  1. WinClub New Member

    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 run via Command Prompt to mainly delete files that go through some custom filters as per your requirements. For example, if you want to make some free space by removing all the files older than one year or six months or so, you can use the ForFiles command to get it done. The only problem is that you can run it on a local computer only. If you want to run the ForFiles command on a shared network drive or folder, you have to map it first.

    How to use ForFiles command on Shared Network folder


    The ForFiles command to delete, rename, move filer or folders on a Shared Network folder or Mapped network drive in Windows 10. To use ForFiles command on the Shared Network folder, follow these steps-

    1. Search for cmd in the Taskbar search box.
    2. Click on the Run as administrator option.
    3. Click the Yes button.
    4. Enter the net use command to map a drive.
    5. Enter the forfiles command with filters to delete a folder.

    At first, you have to open Command Prompt with administrator privilege. For that, search for cmd in the Taskbar search box. When the search result appears, make sure the Command Prompt is selected. If so, click on the respective Run as administrator option. Next, select the Yes option to open Command Prompt as administrator.

    Now, you have to map a network drive to run the ForFiles command. For that, type the following command and press the Enter button:

    net use F: \\networkShare\files /user:yourusername password

    Don’t forget to replace the F with the original drive that you want to map, yourusername and password with your username and password.

    To find a list, enter the following command-

    ForFiles /?

    ForFiles command lets you manage files & folders on Shared Network in Windows 10 use-forfiles-command-shared-network-folder-2.png

    It shows all commands with examples so that you can use them on a mapped network folder on Windows 10.

    The full syntax you can use is:

    forfiles [/P pathname] [/M searchmask] [/S] [/C command] [/D [+ | -] [{<date> | <days>}]]

    You can use the ForFiles command like this:

    ForFiles /p "F:\folder-path" /s /d -180 /c "cmd /c del /q @file"

    You need to replace the F:\folder-path with the actual folder path that you want to delete.

    The above command lets you delete all files that are folder than 180 days or six months and available in the mentioned folder.

    There are other commands you can use alongside ForFiles.

    To list all of the files in the current directory that are at least one year old, type:

    ForFiles /S /M *.* /D -365 /C "cmd /c echo @file is at least one year old."

    This post will show you in detail how to schedule ForFiles command on Shared Network drive.

    Read next: How to remove Map Network Drive and Disconnect Network Drive options from This PC.

    ForFiles command lets you manage files & folders on Shared Network in Windows 10 use-forfiles-command-shared-network-folder-2.png
    This article ForFiles command lets you manage files & folders on Shared Network in Windows 10 first appeared on TheWindowsClub.com.

    read more...
     
    WinClub, May 25, 2021
    #1
  2. Frogger Win User

    ?? How do I PW protect Folders in windows

    hmmm?
    Sharing files and folders overview You can share the files and folders stored on your computer, on a network, and on the Web. The method you choose depends on whom you want to share files with, and what computer they will use to access the files.

    When you share files or folders, they are not as protected as they are when you do not share them. People with access to your computer or your network might be able to read, copy, or change files that are in a shared folder. You should always be aware that the files and folders that you share are available to other people and be sure to monitor your shared files and folders on a regular basis.

    Important

    If your computer is not joined to a domain, you can use the Network Setup Wizard to automatically turn file and printer sharing on or off. To start the Network Setup Wizard, click Start, click Control Panel, click Network and Internet Connections, and then click Network Setup Wizard.
    If you both use the same computer

    You can put the files you want to share in the Shared Documents folder. Files stored in the Shared Documents folder or its subfolders are always available to other users on your computer.

    Step-by-step procedure
    Note

    If you are connected to a network domain, the Shared Documents, Shared Pictures, and Shared Music folders are not available.
    If both computers are on the same network

    You can share a folder or drive on your computer with others on the network. You can also control whether the files in the shared folder can be modified by other users.

    If your computer is connected to a network domain, use this procedure:

    Step-by-step procedure
    If your computer is connected to a workgroup, use this procedure:

    Step-by-step procedure
    Note

    If you are connected to a network domain, you will need to set the Access control for the folder or drive after sharing it. For more information, go to To set, view, change, or remove file and folder permissions.
    If you want to share your files online

    You can publish pictures and documents on the Web using the Web Publishing Wizard. The files will be stored in a private, online folder that you manage.

    Step-by-step procedure

    If you don't want others to access your files

    You can prevent other users from accessing your folders and the files they contain. When your computer is connected to a domain, this is called setting permissions for your file or folder. When your computer is connected to a workgroup, this is called making your folders private.

    If your computer is connected to a network domain, use this procedure:

    Step-by-step procedure
    If your computer is connected to a workgroup, use this procedure:

    Step-by-step procedure

    'HELP' it can be your friend *Smile ForFiles command lets you manage files & folders on Shared Network in Windows 10 :)
     
    Frogger, May 25, 2021
    #2
  3. How to stop sharing folder for windows 10?

    Referring to following link, I would like to know on how to stop sharing folder for windows 10.

    I cannot find Stop Sharing option on step 5.

    Use these steps to stop sharing any folder on Windows 10:

    1. Open Start.
    2. Search for Computer Management and click the top result to open the experience.
    3. Expand the Shared Folders branch from the left pane.
    4. Click the Shares item.
    5. Right-click the folder that you no longer want to share and the Stop Sharing option.
    Furthermore, ADMIN$ is found to be Remote Admin under computer management.

    There is no option to stop it as well.

    Does anyone have any suggestions on how to stop sharing and remote?

    Thanks in advance for any suggestions

    How to stop sharing network folder on Windows 10 • Pureinfotech
     
    PublicMicro, May 25, 2021
    #3
  4. Ferdz Amp Win User

    ForFiles command lets you manage files & folders on Shared Network in Windows 10

    Sharing folders over network - access denied

    Hello,

    To troubleshoot your concern with sharing files over the network using your Windows 10 device, we suggest that you run the Shared folders troubleshooter and check if it helps. Kindly refer to the steps below:

    • Type in Troubleshooting in the search box and press
      Enter.
    • Click View all.
    • Click Shared Folders.
    • Click Next and follow on-screen instructions.

    Hope it helps.
     
    Ferdz Amp, May 25, 2021
    #4
Thema:

ForFiles command lets you manage files & folders on Shared Network in Windows 10

Loading...
  1. ForFiles command lets you manage files & folders on Shared Network in Windows 10 - Similar Threads - ForFiles command lets

  2. About Networking File Sharing Folder

    in Windows 10 Gaming
    About Networking File Sharing Folder: hi,File sharing folder on windows 11, but in different pc cant access, all settings & firewall settings already off, still cant access it, but in main pc i can see there networking 1 i can online normal, means network is working...
  3. About Networking File Sharing Folder

    in Windows 10 Software and Apps
    About Networking File Sharing Folder: hi,File sharing folder on windows 11, but in different pc cant access, all settings & firewall settings already off, still cant access it, but in main pc i can see there networking 1 i can online normal, means network is working...
  4. 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...
  5. 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...
  6. I cannot see my Windows 10 shared folder on Android file manager's network folder.

    in Windows 10 Ask Insider
    I cannot see my Windows 10 shared folder on Android file manager's network folder.: My pc and android are connected to same private wifi and the pc discovery and file sharing is turned on but I cannot find the folder on android. I tried accessing manually by ip, username and password but it didn't work either. submitted by /u/9TeenTwenty1 [link]...
  7. Windows 10 Network Folder Share

    in Windows 10 Ask Insider
    Windows 10 Network Folder Share: I want to share a folder named 'TV & Film' to anyone who connects to my network. Right now, it works as the PC shows up on other computers however, it still requests a login and password for some reason. In network & sharing centre advanced settings, I've changed...
  8. How to share Files and Folders over a Network in Windows 10

    in Windows 10 News
    How to share Files and Folders over a Network in Windows 10: [ATTACH] [ATTACH]Windows, like any other OS, allows you to share files with other users over a network. If you want to share Files and Folders over a Network in Windows 10, permanently or tentatively, we will tell you exactly how you [...] This post How to share Files and...
  9. Windows 10 1903 Breaks Network File/Folder Sharing

    in Windows 10 Network and Sharing
    Windows 10 1903 Breaks Network File/Folder Sharing: I am extremely frustrated again. I went through the hades of MS removing Homegroups back in 5/2018, and it was only through Pauli O's heroic instructions that I was able to get things properly shared again. Various MS updates have subsequently broken sharing, but I've been...
  10. Share Files and Folders Over a Network in Windows 10

    in Windows 10 Tutorials
    Share Files and Folders Over a Network in Windows 10: How to: Share Files and Folders Over a Network in Windows 10 How to Share Files and Folders Over a Network in Windows 10 File sharing over a network in Windows 10 allows you to share files and folders on your computer with other users over a domain. You can set the...