Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8419

Javascript rule

$
0
0

Hello,

i would like to create a javascript rule which will be checkin if file exists in location C:\Mobile. If not then should be display appropriate pop-up. Can someone help me?

 

I wrote it but it doesn't work.

function checkfile()

    {

        var myObject;

        myObject = new ActiveXObject("Scripting.FileSystemObject");

        if(myObject.FileExists("C:\\Mobile\\55.jpg")){

           return true;

        } else {

          return false;

        }

    }

 

 

best regards,

Mateusz Owcarz


Viewing all articles
Browse latest Browse all 8419

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>