Search found 10 matches

by podgodd
04 Aug 2013 16:35
Forum: DOS Batch Forum
Topic: Moving files containing certain words
Replies: 4
Views: 2755

Re: Moving files containing certain words

foxidrive wrote:Try this:

xcopy "c:\folder\*joe*.pst" "d:\destination folder\" /s



This worked perfect! Thank you!
by podgodd
04 Aug 2013 11:17
Forum: DOS Batch Forum
Topic: Moving files containing certain words
Replies: 4
Views: 2755

Re: Moving files containing certain words

Yes, certain words in the filetypes themselves. Say all files containing the word 'joe' need to be copied to a new location while keeping the same directory. All file types have a .pst extensions. Thanks in advance!
by podgodd
04 Aug 2013 11:02
Forum: DOS Batch Forum
Topic: Moving files containing certain words
Replies: 4
Views: 2755

Moving files containing certain words

I am in need of a batch script that will move files containing certain words from one folder to another, all while keeping the same folder structure. From what I gather online, I have found the following script and it does not seem to be working. Any help would be greatly appreciated! @echo off setl...
by podgodd
20 Feb 2013 11:46
Forum: DOS Batch Forum
Topic: Filelisting to Directory Creation P2
Replies: 4
Views: 3174

Re: Filelisting to Directory Creation P2

The code you posted above doesn't do what you said it does. This might do what you want. @echo off dir /s /a:-d /b /o:n "Z:\*.pst" > Filelisting.tmp for /f "delims=" %%a in (Filelisting.tmp) do md "M:\%%~pna" 2>nul del Filelisting.tmp Beautiful!! Thank you so much! wor...
by podgodd
20 Feb 2013 09:52
Forum: DOS Batch Forum
Topic: Filelisting to Directory Creation P2
Replies: 4
Views: 3174

Re: Filelisting to Directory Creation P2

sorry but what do you mean with with a folder created for the .pst name as well the code you provided create directories when it copies the files. Currently the created directory only creates the folder structure up to the *.pst filename, and doesn't create a folder for the filename which I do want...
by podgodd
20 Feb 2013 09:15
Forum: DOS Batch Forum
Topic: Filelisting to Directory Creation P2
Replies: 4
Views: 3174

Filelisting to Directory Creation P2

Ok, the title sounds a little more simple than it seems. What I am trying to do is create a batch script where given a certain directory, say "z:\" creates a directory listing of certain file types (*.pst). From there, the listing then would make the folder structure from the file list in ...
by podgodd
15 Jan 2013 09:44
Forum: DOS Batch Forum
Topic: Filelisting to Directory creation
Replies: 6
Views: 4079

Re: Filelisting to Directory creation

foxidrive wrote:The script can be anywhere that is writable.

If you have z: and m: mapped then it should create the folders ok.



Foxdrive, thanks for the help! This world perfectly!
by podgodd
14 Jan 2013 16:37
Forum: DOS Batch Forum
Topic: Filelisting to Directory creation
Replies: 6
Views: 4079

Re: Filelisting to Directory creation

Try this: @echo off dir /s /a:-d /b /o:n "Z:\*.txt" > Filelisting.tmp for /f "delims=" %%d in (Filelisting.tmp) do md "M:\%%~pd" 2>nul del Filelisting.tmp If I have the source of the of the drive mapped to z:\ and the destination mapped to m:\ should I be able to run t...
by podgodd
14 Jan 2013 15:27
Forum: DOS Batch Forum
Topic: Filelisting to Directory creation
Replies: 6
Views: 4079

Re: Filelisting to Directory creation

So you want to create the directory structure of where your TEXT files are on one drive to another drive. That is pretty easily done with the XCOPY command. It has the /T switch to do that. My logic is this so far: create a dir listing as follows: dir /s /a:-d /b /o:n *.txt > Filelisting.txt and th...
by podgodd
14 Jan 2013 14:22
Forum: DOS Batch Forum
Topic: Filelisting to Directory creation
Replies: 6
Views: 4079

Filelisting to Directory creation

Ok, the title sounds a little more simple than it seems. What I am trying to do is create a batch script where given a certain directory, say "z:\" creates a directory listing of certain file types (*txt). From there, the listing then would make the folder structure from the file list in a...