Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy to printer
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00460227
Message ID:
00460356
Views:
13
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform