/build/static/layout/Breadcrumb_cap_w.png

VB

VB Script to delete a file

0 Comments   [ + ] Show comments

Answers (3)

Posted by: anonymous_9363 15 years ago
Red Belt
0
Do you perhaps have a more vague specification? Do you want it to wait until individual users log on to the workstation, or when anyone logs in? Do you want it to run "remotely", driven by an admin-level account? Does it need to "walk" the entire domain, run on every workstation and delete the shortcut from the Desktop of every user who ever logged in? Do you want to be able to select an OU, or group, or a combination of the two?

Frankly, no-one has the time to build you a script, unless you want to pay for some development time, in which case, you'd need a properly-constructed proposal with defined deliverables and all that nonsense.

Use Google. Start with file deletion and work up from there. The clues I'm prepared to give you are "WScript.Shell", "FileSystemObject" and "SpecialFolders".
Posted by: nrkres 15 years ago
Senior Yellow Belt
0
i have done but it is not getting the correct result. the icon should delete Every users in the particular machine. I can pay for it.
Posted by: anonymous_9363 15 years ago
Red Belt
0
i have done but it is not getting the correct result. the icon should delete Every users in the particular machine. How, though? You haven't expanded on your requirement at all. Consequently, there can be no costing - since no-one knows what you actually want, they can't advise you of a price.

i have done So how hard is it to alter the script you have to loop through [%USERPROFILE] folder, grab all the folder names, then walk the 'Desktop' folder in THOSE folders, looking for and deleting the shortcut? There must be thousands of folder-walking examples on the web...try looking for 'Recursion' or 'Recursive'.
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