VB Script to delete a file
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
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".
Answered 10/02/2008 by: VBScab
Red Belt

Please log in to comment
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.
Answered 10/02/2008 by: nrkres
Senior Yellow Belt

Please log in to comment
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'.
Answered 10/03/2008 by: VBScab
Red Belt

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