Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Simple Batch file to copy specific directories

Featured Replies

Hi,

Just wondering how to copy directories where the name = ABC* and the files contained therein. I can do a dir /d ABC*, but I can't do a copy or xcopy ABC*\*.*

Any suggestions?


for /f %%_ in ('dir /ad /b from\ab*') do xcopy from\%%_\*.* to\%%_\ /s /e

  • 4 weeks later...
  • Author

Hi,

Thanks IcemanND for the help with the following command. I changed the xcopy to dir for a test before the copy, and it works, but why would it miss the folders with 'spaces' in the name? What's needed to so that it sees all the folders including those with space in the name?

for /f %_ in ('dir /ad /b c:\dir\*') do dir "c:\dir\%_\*.*"

Add the tokens option to the for command.

for /f "tokems=*" %_ in ('dir /ad /b c:\dir\*') do dir "c:\dir\%_\*.*"

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.