VB
VB Script to delete a file
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
anonymous_9363
16 years ago
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".
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
16 years ago
Posted by:
anonymous_9363
16 years ago
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 doneSo 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.
so that the conversation will remain readable.