Batch file help needed
Posted: 2004-11-24 06:15pm
I've been given the task of creating a batch file to copy a users "favorites", thats all fine and dandy...(I can copy fine.) my problem is I had can't figure out how to do this with out having it be a specific users name.
Instead of the batch saying something like this.
"Copy C:\Documents and Settings\laird\favorites\ O:\backup"
I need it to automatically do this without having to write each and every indivdual user name for each batch file.
So should it be something like?
"Copy C:\Documents and Settings\"username"\favorites\ O:\backup"
Or
"Copy C:\Documents and Settings\"*.*"\favorites\ O:\backup"?
Help and the answer would be greatly apperciated....
Instead of the batch saying something like this.
"Copy C:\Documents and Settings\laird\favorites\ O:\backup"
I need it to automatically do this without having to write each and every indivdual user name for each batch file.
So should it be something like?
"Copy C:\Documents and Settings\"username"\favorites\ O:\backup"
Or
"Copy C:\Documents and Settings\"*.*"\favorites\ O:\backup"?
Help and the answer would be greatly apperciated....