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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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).....
Answered 09/30/2010 by: captain_planet
Second Degree Brown Belt

Please log in to comment
0
- DevGuru has an excellent VBScript reference
- A good resource is http://www.computerperformance.co.uk

No affiliation, etc., etc.
Answered 09/30/2010 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity