English Deutsch Français Italiano Particle Software Buy Now


Particle Software
 
Delete File
   ..::   About  •  Purchasing  •  Search  •  Contact  • Home   ::..
 
Screenshots
• Sample
Downloads
Resources
• FAQ
• Macros

 
   Below shows how IntraLaunch can be used to remove a file and DoesFileExist() can check to see if the removal was successful. IntraLaunch 5.0 or higher required.

  • DeleteFile()


 
 
<HTML>

<SCRIPT LANGUAGE="JavaScript">
   function RemoveFile(sFullRemovePath)
   {
     IntraLaunch.DeleteFile (sFullRemovePath);
    
     // Check if gone
     var bDoesExist;
     bDoesExist = IntraLaunch.DoesFileExist(sFullRemovePath);
    
     if (bDoesExist == "False")
     { alert ('File successfully remove'); }
     else
     { alert ('File could not be removed'); }
   }
</SCRIPT>

<BODY>

<a href="Javascript:RemoveFile('c:\\path\\file.txt');">Delete File</a>

</BODY>

<OBJECT ID="IntraLaunch" STYLE="display : none" WIDTH=1 HEIGHT=1    CODEBASE="http://intranet.net/menu/IntraLaunch.CAB#version=5,0,0,0"
   CLASSID="CLSID:0AE533FE-B805-4FD6-8AE1-A619FBEE7A23">
   <PARAM NAME="ImageLoc" VALUE="Null">
   <PARAM NAME="ImageSrc" VALUE="Null">
   <PARAM NAME="Run" VALUE="Null">
   <PARAM NAME="RunParms" VALUE="">
</OBJECT>

</HTML>
 
 
       





Copyright © 1997-2008 Particle Software - All Rights Reserved
Web services provided by Extreme Hosting