From 3cf3ac6c40926962fc6bfe80787c534c9b27473a Mon Sep 17 00:00:00 2001 From: Angel Ivan Date: Thu, 14 May 2026 11:01:47 -0600 Subject: [PATCH] Cambios menores --- BackupCognex/Program.cs | 5 ++--- BackupCognex/config.txt | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/BackupCognex/Program.cs b/BackupCognex/Program.cs index 5ab70c5..79446a2 100644 --- a/BackupCognex/Program.cs +++ b/BackupCognex/Program.cs @@ -20,16 +20,15 @@ class Program } 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(); return; } string ipString = configLines[0].Trim(); string originalDmbPath = configLines[1].Trim().Trim('"'); - string macAddress = configLines[2].Trim(); // Guardada para uso futuro string labviewFolder = "C:\\Pruebas"; //TODO: Actualizar ruta if (!File.Exists(originalDmbPath)) diff --git a/BackupCognex/config.txt b/BackupCognex/config.txt index 167dd94..d27205f 100644 --- a/BackupCognex/config.txt +++ b/BackupCognex/config.txt @@ -1,3 +1,2 @@ 192.168.1.10 -C:\Backups\mi_lector.dmb -00:1A:2B:3C:4D:5E \ No newline at end of file +C:\Backups\mi_lector.dmb \ No newline at end of file