Search found 8 matches

by anu
22 Sep 2009 20:42
Forum: DOS Batch Forum
Topic: file Filename exist in folders
Replies: 11
Views: 12852

hi, I have xml files likethis in error folder called control files. O_A_20081121.XML,O_B_20081121.XML,O_A_20081121.XML. Ex O_A_20081121.XML contain likethis <?xml version="1.0" encoding="UTF-8"?> <XA> <Header> <Total_Record_Count>2</Total_Record_Count> </Header> <XTable> <XARecor...
by anu
21 Sep 2009 19:49
Forum: DOS Batch Forum
Topic: file Filename exist in folders
Replies: 11
Views: 12852

i modified the below codes and works. @echo off set "F1=c:\test\achieved" set "F2=c:\test\error" set "F3=c:\test\resolved" set "F4=c:\test\error\backup" del "%errorlog%" >nul 2>nul for /f "tokens=*" %%a in ('dir /b /a-d "%F2%\*.xml&quo...
by anu
17 Sep 2009 04:19
Forum: DOS Batch Forum
Topic: Count the filename and need to check all are present
Replies: 0
Views: 4987

Count the filename and need to check all are present

got these 3 folders @echo off set "F1=c:\test\achieved" set "F2=c:\test\error" set "F3=c:\test\resolved" I got a a.xml file in error folder which contains likethis <?xml version="1.0" encoding="UTF-8"?> <XA> <Header> <Total_Record_Count>2</Total_Reco...
by anu
17 Sep 2009 03:37
Forum: DOS Batch Forum
Topic: file Filename exist in folders
Replies: 11
Views: 12852

Right now i am using the codes for my requirement @echo off set "F1=c:\test\achieved" set "F2=c:\test\error" set "F3=c:\test\resolved" for /f "tokens=*" %%a in ('dir /b /a-d "%F2%\*.xml"') do ( dir "%F1%\%%~na*" >nul 2>nul if not errorlevel...
by anu
07 Sep 2009 20:25
Forum: DOS Batch Forum
Topic: file Filename exist in folders
Replies: 11
Views: 12852

sorry for the late reply. Thanks a lot. It works well.
by anu
26 Aug 2009 22:03
Forum: DOS Batch Forum
Topic: file Filename exist in folders
Replies: 11
Views: 12852

Thanks a lot. It works. May i know which is the code do the comparison of the file names. if the file doesn't exist in the archieve. write it into the txt file. for ex:asssss_ttttt_v1.xml doesnt exist in archieve. so it remains in error folder itself. So need to generate a txt called FileNotExist.tx...
by anu
25 Aug 2009 20:55
Forum: DOS Batch Forum
Topic: file Filename exist in folders
Replies: 11
Views: 12852

thanks a lot . Really i never wrote any batch script before. can u please explain in detail. I tested the script. whatever xml file starts with a it moved to resolved folder. but my requirement is ex: error folder consist of file abcde_fghij_v1.xml , asssss_ttttt_v1.xml, ajjjj_fuuuuuuuu_v1.xml achie...
by anu
24 Aug 2009 21:55
Forum: DOS Batch Forum
Topic: file Filename exist in folders
Replies: 11
Views: 12852

file Filename exist in folders

i have 3 folders. ex: F1= c:\test\achieved\abcde_fghij_v1_2008_11_28120753.xml F2=d:\test\error\abcde_fghij_v1.xml F3=d:\test\resolved\ I need look for the file F2 exists in F1. Actually file F2 name is changed as F1+datetime values. for this case actually the file exists. so move the file f2 to F3 ...