FileSystemObject.GetTempName() : FileSystemObject : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » FileSystemObject »

 

FileSystemObject.GetTempName()







The GetTempName() method gets a randomly generated temporary file or folder.












<html>
    <body>
    <script language="JScript">
    <!--
    function get()
    {
        var myObject, name;
        myObject = new ActiveXObject("Scripting.FileSystemObject");
        name = myObject.GetTempName();
        alert("The temp file name is: " + name);
    }
    -->
    </script>
    Get a temp file.
    <form name="myForm">
    <input type="Button" value="Get Temp Name" onClick='get()'>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» FileSystemObject