wsh

Creating directory preserving name case

MSDN:

File date and time

Tagged:

Code below shows how to retrieve file date and time using native VFP commands or WSH.
For Windows API based solution that also allows to set file date and time, see George Tasker's
Windows Time hosted on http://www.UniversalThread.com.

MSDN links:
WSH FileSystemObject Object
WSH File Object

Copy, Move, Rename File Preserving Destination Name Case

Tagged:

The CopyFile() and MoveFile() WIN API functions preserve the case of the name for the destination file. Alternatively, WSH can be used.
The source and destination file names should include the directory name in both cases.

Changing Windows default printer

Tagged:

Sometimes it's necessary to change Windows default printer from within VFP application. It can be done with WIN API, WSH or WMI.