FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para CA-Clipper SwpRunCmd
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
SwpRunCmd
Posted: Fri Feb 26, 2010 04:12 PM
Estimados

tengo funcionando esta funcion en varios windows server 2003,
pero en uno me arroja error

Code (fw): Select all Collapse
 cPathdbf =  "c:\wineqa32\datos"
cPathRun = "c:\respaldo\sistema\viernes"

SwpRunCmd( "c:\windows\system32\xCopy.exe " + cPathdbf + "\*.dbf /y >>Infor.log", 0, cPathRun )

y me arroja
This program must be run under Win32

a alguien le ha sucedido y como solucionarlo..
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: SwpRunCmd
Posted: Fri Feb 26, 2010 11:56 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
Re: SwpRunCmd
Posted: Mon Mar 01, 2010 02:09 AM

Antonio

muchas gracias por la información

saludos
Patricio Avalos

Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
Posts: 1054
Joined: Sun Oct 09, 2005 10:41 PM
Re: SwpRunCmd
Posted: Mon Mar 01, 2010 06:18 PM

Hola,,, prueba con esto:

cPathdbf = "c:\wineqa32\datos*.dbf "
cPathRun = "c:\respaldo\sistema\viernes "
cComando := "command.com /c c:\windows\system32\xcopy.exe " + cPathdbf + cPathRun + " / y >>Infor.log"
WaitRun(cComando, 0)

Salu2

Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
Re: SwpRunCmd
Posted: Tue Mar 02, 2010 12:13 PM
Hola Willi

En realidad lo que estoy viendo es algo del servidor, no me funciona ninguna aplicacion
de fw 16bit

pero si la aplicacion DOS le coloco un alert( .. ) funciona bien
y luego cuando ejecuta Swpruncmd sele el error "This program must be run under Win32"

Code (fw): Select all Collapse
cPathdbf =  "c:\wineqa32\datos"
cPathRun = "c:\respaldo\sistema\viernes"

Alert( "Estoy en DOS" )
SwpRunCmd( "c:\windows\system32\xCopy.exe " + cPathdbf + "\*.dbf /y >>Infor.log", 0, cPathRun )
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: SwpRunCmd
Posted: Tue Mar 02, 2010 12:47 PM

Patricio,

No será que el servidor usa una versión de Windows de 64 bits ?

En ese caso te estaría indicando que las aplicaciones de 16 bits requieren usar un Windows de 32 bits.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
Re: SwpRunCmd
Posted: Wed Mar 03, 2010 12:21 PM

Antonio, revise y es de 32BIT

estoy viendo alguna otra solucion.. :-)

gracias a todos por su sugerencias..

Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl

Continue the discussion