Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 536897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:52:12+00:00 2026-05-13T09:52:12+00:00

I have a folder with approx 10000 images, and I need to copy about

  • 0

I have a folder with approx 10000 images, and I need to copy about 500 of them to another folder.

If I create a list of the files I want to copy, how could I copy the files the files?

Was thinking vbscript or is it possible thorough DOS commands such as Xcopy using switches?

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:52:12+00:00Added an answer on May 13, 2026 at 9:52 am

    assuming that you had the list of files in a text file, here’s a vbscript

    Set objFS=CreateObject("Scripting.FileSystemObject")
    Set objArgs = WScript.Arguments
    strFile = objArgs(0)
    strDestination = objArgs(1)
    Set objFile =objFS.OpenTextFile(strFile)
    Do Until objFile.AtEndOfLine
        strLine = objFile.ReadLine
        objfs.CopyFile strLine,strDestination &"\"&strLine
    Loop
    

    save as myscript.vbs and on command line

    C:\test>more file
    test1.txt
    test2.txt
    
    c:\test> cscript //nologo myscript.vbs file c:\destination\directory
    

    OR if you want batch

    @echo off
    for /F %%i in (file) do (  copy "%%i" c:\destination   )
    

    if you want to move list of files according to some pattern, just do

    c:\test> copy *pattern*.txt c:\destination
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a folder full of 100-odd Access97 files. I need to update them
I want to copy F:\test to folder F:\123 so that I have folder F:\123\test.
I have one folder named test located at www.mydomain.com/abc/files/test. I need to change the
Like, we have folder /images/ , it has some files inside. And the script
I am creating a treeview which wil have folder images for directories and want
I have one folder named Images in my project. I want to get the
I have a folder containing .tcb and .tch files. I need to know what
I have a folder with some .h and .c files and I want to
Have two folders with approx. 150 java property files. In a shell script, how
I have folder on which i want to apply security like the current user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.