Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Moving 20,000 files 100 at a time? (Win / Dos)

Thread Tools
 
Search this Thread
 
Old 16 December 2002, 11:07 AM
  #1  
AdrianFRST
Scooby Regular
Thread Starter
 
AdrianFRST's Avatar
 
Join Date: Oct 2000
Posts: 368
Likes: 0
Received 0 Likes on 0 Posts
Question

I have a Win 98 machine here with 20,000 emails as text files in a directory.

I need to move them into a users mailbox 100 or so at a time as the mail server can't handle the whole lot and crashes.

Windows locks when you try and open the directory.

I think a DOS batch file is the best way but I can't find away to only move a set number of files, not the whole lot.

Any ideas?

Thanks!
Old 16 December 2002, 12:04 PM
  #2  
Silent Monkey
Scooby Regular
 
Silent Monkey's Avatar
 
Join Date: May 2001
Posts: 432
Likes: 0
Received 0 Likes on 0 Posts
Post

I'm sure I did something very similar some time ago, can't find the file at the moment, may be on a system at home.

IIRC I used "dir /b > filename" to get a listing of the basic file names then used "for /F" to process that file line by line. "for /f" lets you specify number of lines to skip at start of file.

I find http://www.ss64.com/nt/index.html useful as a command reference (It's NT specific but most work on earlier versions and they often have notes re differences.)
Old 17 December 2002, 01:14 AM
  #3  
Miles
Scooby Regular
 
Miles's Avatar
 
Join Date: Oct 1998
Location: The Granite City/Dallas, Tx.
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Post

Robocopy from the NT/W2K resource kits?

Check out q article 160513. Think in terms of time, not files.

If you need Robocopy, drop me a note.
Old 17 December 2002, 09:36 AM
  #4  
AdrianFRST
Scooby Regular
Thread Starter
 
AdrianFRST's Avatar
 
Join Date: Oct 2000
Posts: 368
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up

Thanks for the help guys, a bit of time waiting for Windows to sort itself out and I was able to move them using Explorer.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Scott@ScoobySpares
Full Cars Breaking For Spares
61
11 January 2021 03:08 PM
BlueBlobZA
Member's Gallery
30
25 July 2016 09:14 AM
Scott@ScoobySpares
Full Cars Breaking For Spares
7
14 December 2015 08:16 AM
Mattybr5@MB Developments
Full Cars Breaking For Spares
20
22 October 2015 06:12 AM
ALi-B
Computer & Technology Related
0
14 September 2015 07:49 AM



Quick Reply: Moving 20,000 files 100 at a time? (Win / Dos)



All times are GMT +1. The time now is 11:33 AM.