Forum Discussion

MW_Didata's avatar
MW_Didata
Regular Contributor
2 years ago
Solved

Delete .xml File through VBscript or keywordtest.

I am new to testcomplete, So bear with me.

 

Everytime an order is made (within my company's software) it creates a new .XML file with a different name. this contains the order and costumer info.

I have specified where this file gets made, it will be put in a empty test folder.

Then a Script checks if that folders had any files.

 

What I want to know is: How do I delete these files through a VBscript (step 1 before creating new .xml file after new order).

I want to start my test with a clean empty folder.

Either the whole folder gets deleted and remade, Or just the files within both work for me.