There are times I simply want to copy one filename to another
filename. I can do this via the SHELL command, but it causes
screen flickering. Is there another way to accomplish the
following with no screen flickering please?
(yes, I know the following is not valid basic code, but it
seemed the easiest way to express the question)
If "D:\Resrch\MainTemp.dat" exists then :' delete file if exists
KILL D:\RESRCH\MAINTEMP.DAT
End if
If "D:\Resrch\MainOut.dat" exists then :' RENAME file if exists
RENAME D:\Resrch\MAINOUT.DAT D:\Resrch\MainTemp.dat
End if
{{{{I would not object if the second part did this instead}}}}
If "D:\Resrch\MainOut.dat" exists then :' RENAME file if exists
Copy D:\Resrch\MainOut.dat D:\RESRCH\MAINTEMP.DAT
KILL D:\Resrch\MainOut.dat
End if
Right now, I \have the above in a batch file called "Fixit.bat"
and I use the SHELL command to shell & execute to that batch
file, but the the screen flickers a lot.
Can the flickering be stopped? It makes for horrible monitor
watching. Yes, I have tried using ECHO OFF in the batch file
to prevent characters / information from being echoed to the
screen, but flickering still remains.
Thank you.
Robert
------------------
[This message has been edited by Robert E. Carneal (edited December 29, 2006).]
filename. I can do this via the SHELL command, but it causes
screen flickering. Is there another way to accomplish the
following with no screen flickering please?
(yes, I know the following is not valid basic code, but it
seemed the easiest way to express the question)
If "D:\Resrch\MainTemp.dat" exists then :' delete file if exists
KILL D:\RESRCH\MAINTEMP.DAT
End if
If "D:\Resrch\MainOut.dat" exists then :' RENAME file if exists
RENAME D:\Resrch\MAINOUT.DAT D:\Resrch\MainTemp.dat
End if
{{{{I would not object if the second part did this instead}}}}
If "D:\Resrch\MainOut.dat" exists then :' RENAME file if exists
Copy D:\Resrch\MainOut.dat D:\RESRCH\MAINTEMP.DAT
KILL D:\Resrch\MainOut.dat
End if
Right now, I \have the above in a batch file called "Fixit.bat"
and I use the SHELL command to shell & execute to that batch
file, but the the screen flickers a lot.
Can the flickering be stopped? It makes for horrible monitor
watching. Yes, I have tried using ECHO OFF in the batch file
to prevent characters / information from being echoed to the
screen, but flickering still remains.
Thank you.
Robert
------------------
[This message has been edited by Robert E. Carneal (edited December 29, 2006).]
Comment