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...
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)
Please log in to answer
Posted by:
Rheuvel
14 years ago
Posted by:
anonymous_9363
14 years ago
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.
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
14 years ago
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?
Regards,
Al
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?
Regards,
Al
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.