Thanks for help...........
Sir it is working fine but some issue are not solved in this code:-
my folder have "slgb0818.prn", "slgb1217.prn"
and it is always working on "slgb0818.prn" file because it have slgb0...prn in file name (Please see bold part is 0), if i will change my second file name from "slgb1217.prn" to "slgb0217.prn" then code is working. if file name contain 5th character 0 then it is working otherwise not working..........
and same case in .TXT file

2. i want to work on multiple extensions i.e. ".TXT",".PRN" how to add second extension in the code