Search found 319 matches
- 22 Jul 2009 02:26
- Forum: DOS Batch Forum
- Topic: Nid Help in DOS 5 commands
- Replies: 1
- Views: 3759
- 20 Jul 2009 18:55
- Forum: DOS Batch Forum
- Topic: batch file inorder to delete cookies/ temporal internet file
- Replies: 1
- Views: 3945
- 20 Jul 2009 18:53
- Forum: DOS Batch Forum
- Topic: Set command help
- Replies: 5
- Views: 6695
- 20 Jul 2009 17:47
- Forum: DOS Batch Forum
- Topic: FTP - Put new files only
- Replies: 3
- Views: 6828
- 20 Jul 2009 17:40
- Forum: DOS Batch Forum
- Topic: Set command help
- Replies: 5
- Views: 6695
- 17 Jul 2009 22:57
- Forum: DOS Batch Forum
- Topic: Copy files
- Replies: 9
- Views: 10363
- 17 Jul 2009 22:22
- Forum: DOS Batch Forum
- Topic: Copy files
- Replies: 9
- Views: 10363
I'm not convinced that traversing once is a benefit because then you have to do multiple (on average) compare operation to determine the extension and then copy the file. string comparison can be done using cmd.exe's internals. eg if/else, set , for loop etc. . Also dir is built into cmd.exe so usi...
- 17 Jul 2009 11:33
- Forum: DOS Batch Forum
- Topic: Copy files
- Replies: 9
- Views: 10363
I can't think of anything in DOS that wouldn't be significantly more complicated. Perhaps a dir /b /s piped through multiple findstr /v commands. Actually, I can't think of any way in DOS to traverse the drive once and get all the different extensions without using a temp file--which may be less ef...
- 16 Jul 2009 23:20
- Forum: DOS Batch Forum
- Topic: Copy files
- Replies: 9
- Views: 10363
- 16 Jul 2009 23:16
- Forum: DOS Batch Forum
- Topic: Copy files
- Replies: 9
- Views: 10363
- 15 Jul 2009 20:04
- Forum: DOS Batch Forum
- Topic: checking consecutive dates
- Replies: 2
- Views: 4595
- 12 Jul 2009 05:16
- Forum: DOS Batch Forum
- Topic: read simultialy from two files
- Replies: 3
- Views: 5381
- 11 Jul 2009 20:31
- Forum: DOS Batch Forum
- Topic: Cross referencing folders
- Replies: 4
- Views: 6235
@OP, does your files in FolderA and FolderB have the same directory structure? anyway, here's a vbscript. It doesn't assume you have same directory structure. ie, if a file anywhere under the directory FolderA exists already in FolderB (also anywhere) , then it will delete the file Set objFS = Creat...
- 08 Jul 2009 21:05
- Forum: DOS Batch Forum
- Topic: findstr question
- Replies: 3
- Views: 5642
if you can download and usegawk for windows, here's a one liner
Code: Select all
C:\test>gawk "/sorry.google/{f[FILENAME]++}END{for(i in f) print f[i],i}" logs*txt
- 08 Jul 2009 20:28
- Forum: DOS Batch Forum
- Topic: Filename to DateTime
- Replies: 9
- Views: 10982