Search found 10 matches

by programchen
31 Dec 2011 03:29
Forum: DOS Batch Forum
Topic: batches excluding multiple directory in xcopy
Replies: 1
Views: 3080

batches excluding multiple directory in xcopy

my exclude.tmp is as follows: C:\WINDOWS;c:\Program files but when i try batch: echo %windir%;c:\Program files>exclude.tmp for %%a in (xls ppt ) do ( xcopy "*.%%a" "%destination%" /c /s /exclude:exclude.tmp ) system still copy files from "program files" directory to des...
by programchen
31 Dec 2011 02:25
Forum: DOS Batch Forum
Topic: multiple file type search
Replies: 9
Views: 9293

Re: multiple file type search

thanks, I want to copy those files to d drive, after copy, delete those files in c drive (including subdirectory)

how to resolve?
by programchen
30 Dec 2011 02:25
Forum: DOS Batch Forum
Topic: multiple file type search
Replies: 9
Views: 9293

Re: multiple file type search

my requirement is copy files from the whole c drive including subdirectory, not copy files from current directory
by programchen
30 Dec 2011 02:15
Forum: DOS Batch Forum
Topic: multiple file type search
Replies: 9
Views: 9293

Re: multiple file type search

I save this batch file in c:\, after that I run the batch, it says can't perform a cycle copy, 0 files copied if I put this batch file in c:\abc, only abc folder document file are copied. how to solve the problem? @echo off set destination=c:\ttmp echo %windir%>exclude.tmp for %%a in (doc pdf xls pp...
by programchen
26 Nov 2011 21:32
Forum: DOS Batch Forum
Topic: access to command line during bootup
Replies: 2
Views: 3598

access to command line during bootup

I want to access files in one computer which installed windows XP, I don't have windows logon ID. I press F8 and find I can't go to command line, if I go to safe mode with command, I still need to logon in windows. is there any way I can make my thumbdrive bootable by MS-DOS and then access files or...
by programchen
26 Nov 2011 21:28
Forum: DOS Batch Forum
Topic: multiple file type search
Replies: 9
Views: 9293

Re: multiple file type search

I already has directory temp, no need to md.

should I use:
@echo off
for %%a in (doc pdf xls) do (
xcopy "*.%%a" "%destination%" /c /d:11-1-2011 /s
)

how to exclude doc and xls inside windows directory, I don't know the exact location of windows installation path.
by programchen
26 Nov 2011 01:28
Forum: DOS Batch Forum
Topic: multiple file type search
Replies: 9
Views: 9293

multiple file type search

is there any command to search all the *.doc, *.pdf, *.xls created after 2010.Jan.1 inside the C drive (including sub-directory)

then copy above files to D drive? thanks
by programchen
22 Nov 2011 01:53
Forum: DOS Batch Forum
Topic: Dos function for search files
Replies: 4
Views: 5531

Re: Dos function for search files

thanks
by programchen
22 Nov 2011 01:22
Forum: DOS Batch Forum
Topic: Dos function for search files
Replies: 4
Views: 5531

Re: Dos function for search files

no, I 'm asking how to find files with *BEG*. the file can be in root directory C", it can be in subfolder C:\abcd\efg\

I want to know both the file name and directory.

dir /b "C:\*BEG*" only check root directory

pls help. thanks
by programchen
21 Nov 2011 23:52
Forum: DOS Batch Forum
Topic: Dos function for search files
Replies: 4
Views: 5531

Dos function for search files

in my C drive, I want to search all files which file name includes string *BEG*.
which command I should use?

also I want to find the directory name that has file name including string *BEG*.
which command I should use?

thanks