some questions on the code that you gave last:
for %%j in (*) do (
rename !filename! kzn!filename!
Would this not add a prefix to all files?
In the first code you queried:
for /d %%j in (C:\GIS_shp_&_dbf_files\KZNSPLN_working\Processses\faa\kzn\) do (
rename %%j kzn%%j
Does the part: in (C:\GIS_shp_&_dbf_files\KZNSPLN_working\Processses\faa\kzn\)
specify that you want the renaming only to apply to the files that folder?
As I ran the code in CMD as C:rename_filename
It recognised the batch file, but then responded: access denied.
Thanks so much for your time