Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rename file using parameters
Message
From
07/12/2001 15:48:38
 
 
To
07/12/2001 15:01:09
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00591399
Message ID:
00591438
Views:
24
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform