I want to copy a mulitple files in a directory to another directory.
Open a "dos" or "cmd" window. Type "help copy" at the prompt.
i want to write content of a file into another file in a directory. If a directory has 5 files i need to create another 5 files based on existing files in that directory.
Click Start | Run, type "cmd", then click OK.
In the command prompt type "copy /?" and then press the ENTER Key.
Construct how you would do it from the resulting information.
Now open WinRunner, and in a new script type "dos_system". It will turn blue in color.
Then click anywhere in the blue text area and press the F1 key.
Construct the needed WinRunner command from the information you constructed from the copy function help information.
Insanity: doing the same thing over and over again and expecting different results
Still Jake's advice is valid...
For the copy command make sure that the target directory exists before copying the files.
Ah, and some existing threads (like this one - except pavan's solution) might also give you a clue on how to proceed.
Wasn't meaning Jake's advice wasn't valid, just spelling it out a little deeper [img]images/icons/smile.gif[/img]
Sorry, Tony. Didn't see your answer while typing mine, therefore I didn't mean that your detailed step by step-answer was not valid.
kpsamkumar: All answers in this thread are valid! [img]images/icons/smile.gif[/img]