October 29, 2000 - Finding the File's Drive Letter
![]() |
October 29, 2000 Finding the File's Drive Letter Tips: October 2000
Yehuda Shiran, Ph.D.
|
drive property of the File object. Here is a piece of script that will print the file's creation date:
<SCRIPT LANGUAGE="JavaScript">
<!--
myActiveXObject = new ActiveXObject("Scripting.FileSystemObject");
file = myActiveXObject.GetFile("f:\\test.txt");
alert(file.drive);
// -->
</SCRIPT>Here is the alert box you will get:


Find a programming school near you