oShell = CREATEOBJECT('Shell.Application')

08/09/2003 - 17:27 por Jorge Luis | Informe spam
Hola a Todos...

Pregunta:

Se puede copiar un archivo o una carpeta, utilizando el objeto oShell
creado con Shell.Application.?

 

Leer las respuestas

#1 Alex Feldstein [MVP]
08/09/2003 - 23:18 | Informe spam
On Mon, 08 Sep 2003 10:27:24 -0500, Jorge Luis
wrote:

Hola a Todos...

Pregunta:

Se puede copiar un archivo o una carpeta, utilizando el objeto oShell
creado con Shell.Application.?





Hazlo con otro objeto en Windows Script Host (WSH):

oFSO = CREATEOBJECT("Scripting.FileSystemObject")
oFSO.CopyFile(cSource,cDestination,lOverWrite)
oFSO.CopyFolder(cSource,cDestination,lOverWrite)



Alex Feldstein
________________________________
Microsoft Visual FoxPro MVP
Please respond in the public groups so that everybody
can benefit from the exchange.
Favor de responder en los foros públicos asi todos se benefician.
(Address scrambled with ROT-13)
How To make good Newsgroups posts
http://dts-l.org/goodpost.htm
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html
Cómo hacer preguntas de manera inteligente:
http://www.sindominio.net/ayuda/pre...entes.html

Preguntas similares