Batch to rename and copy a new file
Posted: 24 Apr 2013 03:00
hello guys,
I have a problem and I hope you can solve it for me
I have I file that is located here:
C:\Oracle\product\11.2.0\client_1\network\admin\tnsnames.ora
I want to rename it by batch and copy a new one in the same folder.
My batch ist looking like this
@echo on
rename "C:\Oracle\product\11.2.0\client_1\network\admin\tnsnames.ora" "C:\Oracle\product\11.2.0\client_1\network\admin\tnsnames_old.ora"
copy tnsnames.ora C:\Oracle\product\11.2.0\client_1\network\admin\tnsnames.ora
pause
But the rename don't work... I always get a syntax error...
Need some help pls.
Greets sL0w
I have a problem and I hope you can solve it for me
I have I file that is located here:
C:\Oracle\product\11.2.0\client_1\network\admin\tnsnames.ora
I want to rename it by batch and copy a new one in the same folder.
My batch ist looking like this
@echo on
rename "C:\Oracle\product\11.2.0\client_1\network\admin\tnsnames.ora" "C:\Oracle\product\11.2.0\client_1\network\admin\tnsnames_old.ora"
copy tnsnames.ora C:\Oracle\product\11.2.0\client_1\network\admin\tnsnames.ora
pause
But the rename don't work... I always get a syntax error...
Need some help pls.
Greets sL0w