1.

Solve : Have use complete path for a copy command?

Answer»

Hope someone can HELP me.

I want to copy files from one directory to another but the last part of the path will change each time and I want a user to be prompted for this bit.

eg. c:\reports\2008\***** to m:\reports\finance\2008\*****

The ***** will be the same folder name (which ALSO has to be created in the second instance).

CLEAR as mud?

What EXACTLY do you want? You can retain the same foldername by setting it as a variable
(set FOLDER="folder"), and then do C:\reports\2008\%FOLDER%

Can you explain some more?cp c:\reports\2008\***** to m:\reports\finance\2008\*****
Quote from: narah on September 20, 2007, 12:59:52 AM

cp c:\reports\2008\***** to m:\reports\finance\2008\*****

Uh... what's that supposed to mean?He means that most of the copy - to path is fixed except for the final subfolder. He wants to prompt the user for this.

a SET /P followed by an MKDIR should fit the BILL.


Discussion

No Comment Found