private void copiar_archivo_service(string _name) { try { //string _ruta_local_service = @"D:\POS\Transmision.net\" + _name; string _ruta_local_service = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "\\" + _name; BataTransmision.bata_transaccionSoapClient updateversion = new BataTransmision.bata_transaccionSoapClient(); BataTransmision.Autenticacion conexion = new BataTransmision.Autenticacion(); conexion.user_name = "emcomer"; conexion.user_password = "******"; byte[] _archivo = updateversion.ws_dll_service_tda(conexion, _name); System.IO.File.WriteAllBytes(_ruta_local_service, _archivo); //if (_name == "Transmision.Net.Basico.dll") //{ // _dbftienda(); FileInfo infofile_pro = new FileInfo(@_ruta_local_service); var fvi_pro = FileVersionInfo.GetVersionInfo(@_ruta_local_service); var version_pro = fvi_pro.FileVersion; string _act = updateversion.ws_update_versiondll_net(conexion, _tienda, infofile_pro.Name, version_pro); //} } catch { } }
//private static string _path_default = @"D:\POS"; private static void copiar_archivo_service(string _name) { try { string _ruta_local_service = @"D:\Transmision.Net.Oracle\" + _name; BataTransmision.bata_transaccionSoapClient updateversion = new BataTransmision.bata_transaccionSoapClient(); BataTransmision.Autenticacion conexion = new BataTransmision.Autenticacion(); conexion.user_name = "emcomer"; conexion.user_password = "******"; byte[] _archivo = updateversion.ws_dll_service_tda(conexion, _name); System.IO.File.WriteAllBytes(_ruta_local_service, _archivo); if (_name == "Transmision.Net.Basico.Oracle.dll") { //_dbftienda(); //if (_tienda == null) //{ // if (Environment.GetEnvironmentVariable("codtda") != null) // _tienda = "50" + Environment.GetEnvironmentVariable("codtda").ToString(); //} FileInfo infofile_pro = new FileInfo(@_ruta_local_service); var fvi_pro = FileVersionInfo.GetVersionInfo(@_ruta_local_service); var version_pro = fvi_pro.FileVersion; string _act = updateversion.ws_update_versiondll_net(conexion, _tienda, infofile_pro.Name, version_pro); } } catch { throw; } }