A while back while I was trying to figure out the best way to gather some log files from Amazon S3 buckets and some web servers I run. These resources are currently generating around 10-15GB of uncompressed log files daily. Besides being fairly large in size the S3 (and CloudFront) log files are numerous. Any […]
Category: Batch File
Testing If a Directory Exists from a Batch File
Going old school here. . . To check for the presence of a directory (or folder) you can use the IF EXIST statement. For example, to test for C:TEMP and then change to C:TEMP if it exists, else create the directory and change to it, use the following batch file: C:IF NOT EXIST C:TEMP GOTO […]