script needed to delete folder after confirming text from file

I am looking for script that should delete folder and it's files after confirming the folder name from a text file that keeps track of folder properties.
E.G. Text file is at location -:c:\program files\marimba\tuner\map.txt
Now I want my script to look for text " voipme x.xx.xxx" in the txt file and make of note of folder in which i will find details of this particular text. then script should delete the folder.

Any help would be highly appreciated...

0 Comments   [ + ] Show comments

Answers (3)

Posted by: anonymous_9363 11 years ago
Red Belt
First, AppDeploy has a specific forum for 'Scripting' and second, the work you require is non-trivial and certainly not something I'd undertake for free.

I would suggest that you search for scripts which do both jobs and then combine the two. The single-most important advice I will give you is the same I give to any script developer: assume that NOTHING will work and error-trap your code accordingly, even for what you regard as the most trivial task. Most scripts don't do that and, while they work 99% of the time, the 1% failure will occur at the least convenient/most financially costly time and YOUR NAME will be associated with that failure forever.
Posted by: AB 11 years ago
Purple Belt
Odd - map.txt keeps track of your channels and which folder is associated with each channel.
Why don't you just delete the channel - which in turn should delete the folder?
I don't know if you're using AD integration...
But the Tuner should be used to manage itself.
I can't think why you'd want to delete a channel manually...
Was there some strange problem?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


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