Saved Bookmarks
| 1. |
Solve : Batch file needed? |
|
Answer» Hi
What building Tool? Post the batch file you have created. The OS automatically tracks the file's name, size and creation date when a file is placed in a folder. Use the dir command to display the information. C:\>dir Volume in drive C has no label. Volume Serial Number is 0652-E41D Directory of C:\ 04/16/2010 05:05 PM 1100 06/10/2009 04:42 PM 24 autoexec.bat 06/10/2009 04:42 PM 10 config.sys 04/16/2010 08:59 PM LaserJet517 04/17/2010 07:17 AM Office2003SP3Changes 07/13/2009 09:37 PM PerfLogs 04/24/2010 05:30 AM Program Files 04/16/2010 04:19 PM Users 04/23/2010 06:41 PM Windows 2 File(s) 34 bytes 7 Dir(s) 300,943,646,720 bytes free C:\> Quote from: mukku on April 22, 2010, 03:48:17 AM Now I need a batch file that recognises latest binaries and triggers the build. C:\test>type buildlog.bat Code: [Select]echo off if EXIST timefile*.txt del timefile*.txt dir > folderlog.txt rem for four times add dir info to log each time interval ( command line arg %1 ) set /a c=0 :timer if %c%==4 goto end set /a c=%c% + 1 time /t > timefile%c%.txt sleep.exe %1 time /t >> timefile%c%.txt dir >> folderlog.txt type folderlog.txt goto timer :end C:\test>type timefile*.txt timefile1.txt 02:42 PM 02:43 PM timefile2.txt 02:43 PM 02:44 PM timefile3.txt 02:44 PM 02:45 PM timefile4.txt 02:45 PM 02:46 PM C:\test> Hi, Greg! Quote from: Salmon Trout on April 24, 2010, 02:09:04 PM Hi, Greg!Not again...so bill, what PROXY are you using, SINCE you can't use your ISP to get on?I voted... Quote from: patio on April 24, 2010, 03:16:34 PM I voted... It's our duty!why is there a poll for this topic?I wanted to vote, but I had a problem. Two problems. There were not enough choices. The choices available were hard to discriminate. Quote from: Geek-9pm on April 24, 2010, 07:05:06 PM The choices available were hard to discriminate[/i]. I'm not helping you find your glasses this time, Mr. Magoo. |
|