Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a .bat file to copy .doc to current userprofile

Status
Not open for further replies.

gusahq

IS-IT--Management
Apr 1, 2003
8
US
I'm needing to send out a document to multiple remote users, since I don't want to have to take a hundred phone calls asking me how to move the file I was just going to make a batch file that copied the document to a folder in the current user profile. Does any one know how I can do this?
Or even better to write a batch file that would add the information to their current doc.

 

You can copy it direct onto their desktop by doing

Copy filename.doc %USERPROFILE%\Desktop

in a batch file.

John
 
Why not just email them the doc with instructions?

Marc
If 'something' 'somewhere' gives 'some' error, expect random guesses or no replies at all. Please specify details.
Free Tip: The F1 Key does NOT destroy your PC!
 
jrbarnett, I had tried that as well but I keep getting an error saying "the syntax of the command is incorrect"

my command line was copy filename.ini %USERPROFILE%\application data\icaclient
Am I missing something?

marcs41, of course I thought of that, but this is going out to over 150 franchise locations that have a hard enough time locating the on/off switch much less moving a file to the correct location.
 
Try with quotes like this:

copy filename.ini "%USERPROFILE%\application data\icaclient"


-- AirCon --
 
AirCon, Thanks for your reply, that is what I was leaving out. It works like a charm now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top