FoxPro/Visual FoxPro - COPY FILE

 
Vista:
sin imagen de perfil

COPY FILE

Publicado por DALSOM (612 intervenciones) el 13/02/2004 21:31:12
HOLA A TODOS,
TENGO UN PROBLEMA CON EL COPY FILE, AL COPIAR UN ARCHIVO, DIGAMOS "00000008.BMP" A OTRA PARTE, NO LO HACE, Y NI SIQUIERA ME DA UN ERROR.

EL COPY ESTA BIEN, Y FUNCIONA LA PRIMERA VEZ, SI NO EXISTE NINGUN ARCHIVO. COMO FUNCIONO LA PRIMERA VEZ, Y CUANDO ESTOY EN MODO DE DEPURACION, INTENTE BORRAR EL ARCHIVO EN LA DIRECCION DESTINO, EN CASO DE QUE EXISTIESE. SE BORRA BIEN, PERO NO SE COPIA. PORQUE?

1RO. PENSE QUE PODRIA ESTAR EN USO, ASI QUE A MI CONTROL QUE MUESTRA LA IMAGEN, LE HE QUITADO LA IMAGEN, PONIENDOLE OTRA, Y LUEGO HACIENDO LA COPIA. PERO , NO FUNCIONA. NO SE HACE EL REEMPLAZO.

QUE PUEDE ESTAR SALIENDO MAL?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:COPY FILE

Publicado por Plinio (7841 intervenciones) el 13/02/2004 21:45:25
Puedes publicar la instruccion que esta poniendo, COPY FILE...... ?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

RE:COPY FILE

Publicado por DALSOM (612 intervenciones) el 13/02/2004 22:51:01
ESTA ES LA INSTRUCCION Y NO LE VEO NADA RARO :
_newimgpath='\\computos\inventario\'+padl(alltrim(str(_imagen)),8,'0')+'.bmp'
_imgpath=alltrim(thisform.inv.imagen.grafico.picture)
thisform.inv.imagen.grafico.picture='\\computos\inventario\noimagen.bmp'
if file(_newimgpath)
delete file &_newimgpath
endif
copy file &_imgpath to &_newimgpath
endif

YA INTENTE CON
copy file _imgpath to _newimgpath

NO FUNCIONO, SOLO ME DIO UN ERROR DE QUE IMGPATH NO EXISTIA.

Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:COPY FILE

Publicado por Roman Suazo (2723 intervenciones) el 13/02/2004 23:55:59
Primero prueba desde la ventana de comandos, sin usar variables. si no sale
prueba copiandolo al disco local, en C:, para hacer el asunto mas facil

Despues puedes checar si en verdad tienes los derechos necesarios para copiar
archivos a esa carpeta.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

RE:COPY FILE

Publicado por DALSOM (612 intervenciones) el 14/02/2004 17:16:18
SI, TENGO LOS DERECHOS DE MODIFICACION DE ESE DIRECTORIO PARA COPIAR MODIFICAR Y TODO LO DEMAS.

FUNCIONA DE LA MISMA MANERA QUE SI FUERA LOCAL.

ESTOY USANDO WINDOWS XP.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar