Hello Guest it is April 18, 2024, 03:49:00 PM

Author Topic: save configuration  (Read 1688 times)

0 Members and 1 Guest are viewing this topic.

save configuration
« on: March 14, 2021, 04:10:20 AM »
good morning
I created a file.bat with inside:
copy c: \ mach3 \ larossa.SET D: \ BACKUP \ INUSE \
copy c: \ mach3 \ mach3mill.XML D: \ BACKUP \ INUSE \
so that every time I change the screen I save it and it works, what I would like to do (since I am not capable of it) is to save it to me in sequence like "larossa.set.001 larossa.set.002 larossa.set. 003 etc etc "I don't know if it's achievable.
I thank those who can help me
Re: save configuration
« Reply #1 on: March 23, 2021, 04:11:13 PM »
I fixed place the .bat file if it is of interest

@echo off
set Source=C:\mach3\larossa.set
set Source2=C:\mach3\MACH3MILL3assi.xml
set Destination=D:\BACKUP\inuso\
set Filename=larossa
set Filename2=MACH3MILL3assi

set a=1
:loop
if exist %Destination%\%Filename%(%a%).set set /a a+=001 && goto :loop
copy %Source% %Destination%\%Filename%(%a%).set
copy %Source2% %Destination%\%Filename2%(%a%).xml