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.

xcopy with wild card for folders

Featured Replies

I have been trying to figure this one out and I have looked all over the place and can't find a solution to this.

Let's say I have several different folders in C:\images. The folders in this directory are as follows

SR23

SR23 2006

SR54

SR54 2006

US98

US98 2006

Is there a way to write a batch file with wild cards to only copy the folders that have the 2006 in the folder name using xcopy?


I am not to good with the cmd promt but try this vbs script.

Save As Copy2006Folders.vbs

Dim Fso :Set Fso = CreateObject("Scripting.FileSystemObject")
'-> This Makes The Folder Where The Script Is Located The Parent Folder
Dim Col :Set Col = Fso.GetFolder(".")
'-> Example Using A Full Path
' Dim Col :Set Col = Fso.GetFolder("C:\TheFolder")
Dim Obj, CopyTo
'-> Place The Path To Where You Want To Copy To Here.
CopyTo = "PATH_TO_COPY_TO"
For Each Obj In Col.SubFolders
If InStr(Obj.Path,"2006") Then
Fso.CopyFolder Obj.Path, CopyTo, true
End If
Next

Place this script in the folder you want to do the copy or you can add a full path.

'-> This Makes The Folder Where The Script Is Located The Parent Folder
Dim Col :Set Col = Fso.GetFolder(".")
'-> Example Using A Full Path
' Dim Col :Set Col = Fso.GetFolder("C:\TheFolder")

Then fill in the CopyTo varible

CopyTo = "PATH_TO_COPY_TO"

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.