joejames_786 wrote: ↑07 Apr 2018 06:37
hi
Antonio that script didn't work
Before my code I posted a reply about how beginners could do better questions. I invite you to read
the first topic in this forum, particularly these parts:
By providing poor information about your task the code you are given stands a good chance of failing.
What happens in a thread when incorrect or poor details are supplied: is that the volunteers write a script based upon that information and the next post often comes from the question writer saying "It doesn't work!"
Often a very long series of posts begins where we try to ascertain what the problem is and how the code fails and then what the real details of the task are. The script has to be rewritten, and that just wastes the time of those volunteers who are giving you free code and it is terribly frustrating and unsatisfying for volunteers to have to re-write a script for the same task again.
Don't do this.
In your first request, you said:
"SOURCE: I have a folder named (A)", but in your last request it changed to:
"source folder d:\dump".
In your first request, you said:
"DESTINATION: there are 5 folders named (ie 1, 2, 3, 4, 5)", but in your last request it changed to:
"destination folder d:\others\1 ........d:\others\5".
If you consider that my code was wrote using your first specifications, then it should be easy to adjust the code to the
new specifications (hint: change "\A" by "d:\dump", etc).
However, in your first request, you said:
"DESTINATION folders needs to have 3 .data files always" and in your second post:
"each folder maintains 3 files". However, in your last request you said:
"even 1 .data file is ok but these 5 folders should not be empty. 3 .data files is not mandatory".
Sorry, I give up...
Antonio
PS - I googled "Why doesn't my code work" phrase and found several interesting pages, like these ones:
https://www.quora.com/Why-doesnt-my-code-work-1 wrote:
Please be explicit? I think you need to be more explicit when posting programming problems.
- Always mention the results. "Not working" is not a helpful result. What's not working? What are you getting? What's the error?
- Ask better question to get better answer.
https://meta.stackoverflow.com/questions/253787/are-there-legitimate-fix-my-code-questions wrote:
Legitimate code troubleshooting questions will contain all of the following:
- A brief, but specific statement of the problem, telling us precisely what is wrong. "It doesn't work" is not a problem statement.
- A brief code snippet that reproduces the problem.
- The exact wording of the error message you are getting, and which line of code is causing it.
- The desired behavior; what the program is supposed to do.
- The troubleshooting steps you've attempted so far to isolate the problem.
Questions missing one or more of these things are subject to closure as "insufficient information to diagnose problem."
Questions containing only a code dump with no explanation of the problem, no attempt at troubleshooting yourself, and containing the inscription "How do I fix my code," are specifically off-topic.
https://meta.stackoverflow.com/a/254263/778560 wrote:
Why are you telling me all of this?
Because we expect questions asked here to have a certain minimum level of quality.
- We expect you to describe the problem clearly and accurately, and give us the information we need to answer your question.
- We expect you to do your own work. We're here to help you, but we're not here to do your work for you, or help you find things on other sites.
- We expect you to demonstrate that you have some basic skills, so that you will understand the answer we give you. If what you need to do is go read a book, then that's what we're going to tell you to do.