Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy to printer
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00460227
Message ID:
00460356
Vues:
15
>>isn't there an internal basic statement like Dir, Kill, Name.
>>I needed it myself some time ago, I couldn't recall.
>
>There is a FileCopy method but don't forget that he wants to copy to the lpt1 prot.
>
>When the file has an associated extension (ex: .doc, .xls, ...), you can use the ShellExecute API command.

It also invokes the GDI; CopyFile() or shelling to XCOPY does not (COPY, being an internal command, requires that you actually invoke a command processor to handle the COPY operation, eg COMMAND /C COPY /b prot lpt1:, and depending on OS, you may or may not need the trailing :

CopyFile() avoids these issues.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform