|hello guys , |
i have a batch that copy files from one dir to another with different extention.
%1 - is the full filename path i get from another program that runs the batch.
cd %~p1 (gets into the relevant directory)
copy *.* d:\bhub\chk\*.chk
this works fine , and also copies files that have no extention and creates for them *.chk.
now i want the same thing but i want to create the new *.chk files based on names only and that they will be 1 kb only. (with echo)
so i tried this and it doesn work for me (it works only when i type it but not when i run the batch)
for %i in (*.*) do echo > d:\bhub\chk\%~ni.chk