. DirectXtras Home

DirectCommunication Xtra
DirectConnection Xtra
DirectControl Xtra
DirectEmail Xtra
DirectFTP Xtra
DirectImage Xtra
DirectInteraction Xtra
DirectOS Xtra
License Agreement
Licensing Fees
Order Form
DirectSMS Xtra
DirectSound Xtra
DirectTransition Xtra
DirectTransition3D Xtra Set I
DirectTransition3D Xtra Set II
DirectTransition3D Xtra Set III
DirectTTS Xtra
DirectXport Xtra


Special Discounted Bundles

The Gallery
How To Order
Order Form
Check for Upgrades

Sign in
Change Your Profile

Contact Us

Xtra Power for Director & Authorware

DirectOS Xtra
 Directing Windows and MacOS. The OS at your fingertips!

Authorware 4.x Compatible Authorware 5.x CompatibleAuthorware 6.x CompatibleAuthorware 7.x CompatibleDirector 5.x Compatible Director 6.x CompatibleDirector 7.x Compatible Director 8.x CompatibleDirector MX Compatible     MacOS 8.x and 9.x CompatibleMacOS X CompatibleWindows Compatible   

dosSetFileDate(string FileName, string Info, string Date)

Sets the creation, last modification or last accessed date of the file, folder or drive specified by FileName, to the date specified by Date.

Parameters :

FileName : A string specifying the drive, location and name of the file to search for using a pathname. For example, "C:\Docs\MyDoc.txt" on Windows or "My Mac:Docs:My Doc" on MacOS. On MacOS only, FileName may also be a folder or drive. On Windows, all files and folders in the pathname may be specified by their Windows name or MS-DOS name. 
Info : A string specifying whether to set the creation, last modification or last accessed date. This parameter is case insensitive.

Possible Values For Windows And MacOS :

"Created" : Sets the file, folder or drive creation date.
"Modified" : Sets the file, folder or drive last modification date.

Possible Value For Windows Only :

"Last Accessed" : Sets the file last accessed date.

Date : A string specifying the new file, folder or drive date. The format of the string is "month/day/year". For example, setting the file date to October 24th, 1979 would correspond to "10/24/1979".

Return Value : An integer indicating whether the method succeeded or failed. A value of 1 indicates that the method succeeded. A value of 0 indicates the method failed, in which case dosGetLastError() should be called to determine the cause of the error. 

Possible Returned Error Codes via dosGetLastError() :
10002 : Invalid value for parameter 2. 
10003 : Invalid value for parameter 3. 
10007 : Invalid month value specified in Date
10008 : Invalid day value specified in Date
10014 : File expected, a reference to a drive or folder was given on Windows. 
10016 : File not found. 

DirectXtras Inc.
P.O Box 2645, Menlo Park, CA, 94026, U.S.A
Voice: +1-415-5058249, Fax: +1-801-8585841
Toll Free: 1-800-4453093
E-mail General Information: info@directxtras.com
E-mail Technical Support: support@directxtras.com

Copyright 1996-2004 DirectXtras Inc. All Rights Reserved.
WebMaster: tamar@directxtras.com
Last Updated: 2/22/2002 1:17:37 PM.