Forum Discussion

balathavamani's avatar
balathavamani
Occasional Contributor
10 years ago

open directory from scripts

Hi All,

 

How to open directory from scripts in Test complete. For Example if i have folder structure like this "D:/Testing/Automation/" & i  need to open this folder from scripts. Is it possible to do in test complete

 

 

Thanks

Bala

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)

    Hi Bala,

    If you mean opening a folder in Windows Explorer, you can do it like this:

     

    // JScript
    Sys.OleObject("WScript.Shell").Run("explorer D:\\Testing\\Automation\\");

    (If this is now what you mean, please clarify.)

    By the way, what exactly task are you trying to automate? There's probably a way to do this without involving Explorer. Explorer can be tricky to automate, because its GUI differs across various Windows versions.