Search found 4 matches

by sri2002
23 Jun 2013 11:36
Forum: DOS Batch Forum
Topic: File watcher/ monitor batch script
Replies: 2
Views: 5317

Re: File watcher/ monitor batch script

It worked, Thanks foxidrive. Really appreciate your help
by sri2002
22 Jun 2013 22:38
Forum: DOS Batch Forum
Topic: File watcher/ monitor batch script
Replies: 2
Views: 5317

File watcher/ monitor batch script

Hi I am looking to write a batch script and I am kinda new. There are like 35 folders and each folder will receive files daily, so I want to monitor all folder if file received daily or not. files can be identified by file name which has date in it but some of them date format is different. Below is...
by sri2002
21 May 2013 05:32
Forum: DOS Batch Forum
Topic: Find and replace in a file
Replies: 3
Views: 2224

Re: Find and replace in a file

echo %% will create a single % character Show us the code that you have tried. Thanks foxidrive. Your tip help me to resolve the issue. Now I dont need to find and replace it. @echo off set "YYYY=2013" set "YY=13" set "MM=03" set "LOCATION=D://DCOUMENTS/SQLSCRIPT/...
by sri2002
20 May 2013 22:06
Forum: DOS Batch Forum
Topic: Find and replace in a file
Replies: 3
Views: 2224

Find and replace in a file

I have script which generates SQL's with variables. @echo off set "YYYY=2013" set "YY=13" set "MM=03" set "LOCATION=D://DCOUMENTS/SQLSCRIPT/" select count(*) from table1 where filedirectory='XXXXX' and file_name like 'ABC_percentage_%YYYY%%MM%__.txt'; >> %LOCA...