Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename file using parameters
Message
De
07/12/2001 15:48:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00591399
Message ID:
00591438
Vues:
25
>Hello,
>
>How to write a WSH code to rename one file? Can the .VBS code take two parameters?

Tou could use Vbscript.FileSystemObject to do it; a script can take an arbitrarily large number of parameters, available as a collection belonging to the native Wscript object. Wrox Press has a book "VBScript Programmer's Reference Guide" that covers it rather thoroughly.
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