Cambios menores
This commit is contained in:
@@ -20,16 +20,15 @@ class Program
|
|||||||
}
|
}
|
||||||
|
|
||||||
string[] configLines = File.ReadAllLines(configPath);
|
string[] configLines = File.ReadAllLines(configPath);
|
||||||
if (configLines.Length < 3)
|
if (configLines.Length < 2)
|
||||||
{
|
{
|
||||||
Console.WriteLine("El archivo configbackup.txt debe tener 3 líneas: IP, Ruta .dmb y MAC Address");
|
Console.WriteLine("El archivo configbackup.txt debe tener 2 líneas: IP y Ruta .dmb");
|
||||||
Console.ReadKey();
|
Console.ReadKey();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
string ipString = configLines[0].Trim();
|
string ipString = configLines[0].Trim();
|
||||||
string originalDmbPath = configLines[1].Trim().Trim('"');
|
string originalDmbPath = configLines[1].Trim().Trim('"');
|
||||||
string macAddress = configLines[2].Trim(); // Guardada para uso futuro
|
|
||||||
string labviewFolder = "C:\\Pruebas"; //TODO: Actualizar ruta
|
string labviewFolder = "C:\\Pruebas"; //TODO: Actualizar ruta
|
||||||
|
|
||||||
if (!File.Exists(originalDmbPath))
|
if (!File.Exists(originalDmbPath))
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
192.168.1.10
|
192.168.1.10
|
||||||
C:\Backups\mi_lector.dmb
|
C:\Backups\mi_lector.dmb
|
||||||
00:1A:2B:3C:4D:5E
|
|
||||||
Reference in New Issue
Block a user