/build/static/layout/Breadcrumb_cap_w.png

VBSCript help

Hi,

I'm pretty novice to VBScripting. I need help writing a script that does the following;

1. Check if the following file (integrityclient.rc) exists in the %USERPROFILE% directory, if it exists delete it.
2. Check if the following folder (.mks) exists in the %USERPROFILE% directory, if it exists delete it.

Can anybody help please?

0 Comments   [ + ] Show comments

Answers (2)

Posted by: captain_planet 14 years ago
Black Belt
0
Have you visited some of the links provided in the 'Scripting - Beginner' sticky? You need to be looking at using the FileSystem object to check for the existence of files/folders (FileExists(), FolderExists() methods).....
Posted by: anonymous_9363 14 years ago
Red Belt
0
- DevGuru has an excellent VBScript reference
- A good resource is http://www.computerperformance.co.uk

No affiliation, etc., etc.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ