I must have broken the code in someway before. Now it works. Thanks for all the help.
Now the hard part... teach people to start the file..
Search found 4 matches
- 12 Mar 2021 04:51
- Forum: DOS Batch Forum
- Topic: Find and copy file
- Replies: 6
- Views: 5404
- 10 Mar 2021 05:01
- Forum: DOS Batch Forum
- Topic: Find and copy file
- Replies: 6
- Views: 5404
Re: Find and copy file
I didn't get that to work, XD worked on foldernames for me but not paths. But I found a workaround. Before your command I coded so it echoes paths into a txt, then after the search I use xcopy with the txt as an exclude. So it don't make a copy of the file from the paths in the txt, if there is any....
- 10 Mar 2021 03:10
- Forum: DOS Batch Forum
- Topic: Find and copy file
- Replies: 6
- Views: 5404
Re: Find and copy file
Oh, thank you. That worked fine with a copy command. But... there is always a but. :P Do you know if I can in anyway use full paths to exclude? I want to exclude "%programdata%\telephone communications server\diag". Reason is that it creates the telephone and diag folder in different places. So beca...
- 09 Mar 2021 07:34
- Forum: DOS Batch Forum
- Topic: Find and copy file
- Replies: 6
- Views: 5404
Find and copy file
Hi! I am writing a script to zip logfiles and then attach the file to an e-mail for the user to send. The problem is that sometimes one program has variable places to put the log files. My thought was to use a searchfunction in batch to find the file on C:\ and then copy it to a second folder zip it...