Search found 34 matches
- 09 May 2015 10:24
- Forum: DOS Batch Forum
- Topic: last modified vs. terminate process
- Replies: 2
- Views: 3621
Re: last modified vs. terminate process
Due to interruptions. That is a norm for some. Without doubt, the ideas and the help always been great.
- 08 May 2015 18:24
- Forum: DOS Batch Forum
- Topic: last modified vs. terminate process
- Replies: 2
- Views: 3621
last modified vs. terminate process
I need a batch file that runs on windows 7 and that does the following:
need it to check the last modified date and time of MyLog.txt. If it is more than X number of minutes, Kills the MyLog.exe process if it is listed under the processes Image name, and calls myclean.bat.
need it to check the last modified date and time of MyLog.txt. If it is more than X number of minutes, Kills the MyLog.exe process if it is listed under the processes Image name, and calls myclean.bat.
- 20 Aug 2014 00:16
- Forum: DOS Batch Forum
- Topic: copy folders....
- Replies: 2
- Views: 3709
copy folders....
I need a batch file to copy the C:\MyFolder\MySubFolder1\... and all its sub directories to location like \\rmt-srv1\dir1\MySubFolder1\...
- 20 Aug 2013 00:12
- Forum: DOS Batch Forum
- Topic: delete on condition
- Replies: 4
- Views: 4888
Re: delete on condition
popular common easy stuff but not enough.:
for /f "delims=*" %%x in ('dir /b /ad-s-h C:\dirx\abc_cdf*') do rd "%%x" /s /q
for /f "delims=*" %%x in ('dir /b /ad-s-h C:\dirx\abc_cdf*') do rd "%%x" /s /q
- 19 Aug 2013 08:57
- Forum: DOS Batch Forum
- Topic: delete on condition
- Replies: 4
- Views: 4888
delete on condition
looking for a script that only checks a folder and in the folder if, there is only one folder that starts with "abc_cdf" exits. If there are more than one folder starting with "abc_cdf", delete the ones that are older than 5 days. This script does not go inside the sub folders. I...
- 03 Jul 2013 00:38
- Forum: DOS Batch Forum
- Topic: search & copy
- Replies: 8
- Views: 7767
Re: search & copy
ok. i didn't see the pushd.
ok. how about if "word1" and "word2" should be in the same line to copy.
ok. how about if "word1" and "word2" should be in the same line to copy.
- 03 Jul 2013 00:23
- Forum: DOS Batch Forum
- Topic: search & copy
- Replies: 8
- Views: 7767
Re: search & copy
what popd does?.
- 02 Jul 2013 21:26
- Forum: DOS Batch Forum
- Topic: search & copy
- Replies: 8
- Views: 7767
search & copy
hi, i have lots of CSV files in a dreictory and its subs. I am new to batch scripting. windows 7 dos. i need a batch script that search all the CSV files in only a folder (C:\folder1 , not its sub-folders) and copy all the csv files that contain "word" and "word2" to C:\folder2. ...
- 03 Mar 2013 21:48
- Forum: DOS Batch Forum
- Topic: move folders older than 60 days
- Replies: 9
- Views: 16048
Re: move folders
no such activity as explained for more than last 60 days. any tool and method that works the best.
- 03 Mar 2013 19:04
- Forum: DOS Batch Forum
- Topic: move folders older than 60 days
- Replies: 9
- Views: 16048
move folders older than 60 days
Need a batch script that move folders with no update activity have been done on them more than 2 months ago. No new files or folders have been added to them, no files have been updated.
- 02 Mar 2013 23:00
- Forum: DOS Batch Forum
- Topic: Decompress zip/rar/gzip in subdirectories and filter files
- Replies: 11
- Views: 10681
Re: Decompress zip/rar/gzip in subdirectories and filter fil
yes, indeed. In general, what is the best way to search through a directory (c:\dir1) and its subs and find files that contain multiple words such Word1, word2 and word3?. I have implemented a way and works but it may not be the best way. I do not have the code handy.
- 01 Mar 2013 19:11
- Forum: DOS Batch Forum
- Topic: Decompress zip/rar/gzip in subdirectories and filter files
- Replies: 11
- Views: 10681
Re: Decompress zip/rar/gzip in subdirectories and filter fil
this line looks for the word LPI and .txt in the file name. How this line changes to satisfy the condition if 1)LPI is either found in the file name or found inside the file itself with the file name having the extension of .txt?. 2)look for LPI only inside the file itself with the file name having ...
- 28 Feb 2013 22:50
- Forum: DOS Batch Forum
- Topic: Decompress zip/rar/gzip in subdirectories and filter files
- Replies: 11
- Views: 10681
- 28 Feb 2013 09:09
- Forum: DOS Batch Forum
- Topic: Decompress zip/rar/gzip in subdirectories and filter files
- Replies: 11
- Views: 10681
Re: Decompress zip/rar/gzip in subdirectories and filter fil
"C:\Program Files\7-zip\7z.exe e "%%f" may work for .gz files and is the only one I know. Also .txt is only the extension. It won't be in the middle. Best is to look at the last three letter of the file name to find extension.
- 27 Feb 2013 22:33
- Forum: DOS Batch Forum
- Topic: Decompress zip/rar/gzip in subdirectories and filter files
- Replies: 11
- Views: 10681
Re: need help with a bat script
1)name format of each gz file is filename_Sequence#.gz.
2)some uncompressed file names have extension of .txt.
2)some uncompressed file names have extension of .txt.