Saved Bookmarks
| 1. |
Solve : command line arguments in dos? |
|
Answer» HI All, I am new to dos. I have to use some command which should accept source and destination path as command line arguments and the file name to copy. whenever i SUPPLY three arguments my functionality should work. how can i ACHIEVE this? Thanks in advance.can anybody please help me...What do you need help with ? Do you have to create a program to accept and process the parameters, or does this program already exist and you need to know how to supply parameters on the command line ?thank you... i need a program for this. When you say program, you mean batch script ?Actually speaking i do not know how to achieve this...(through batch file or command etc) Please give me possible ways. I am sorry as i am new to this forum as well as dos. So your requirement is receive 3 parameters Source Directory (%1) Destination Directory (%2) Filename (%3) Copy filename from Source to Destination The simplest way is (with no error checking) Code: [Select]Copy %1\%3 %2Thank you gpl. Its working. I have created a batch file with your command. I have passed three arguments to the file while running it. Can we copy the file from ONE machine to other machine? |
|