![]() |
|
#1
|
||||
|
||||
|
It's been a while since I've done this type of "programming", so can someone tell me how I can (if it's possible using XP Home) to create a simple batch file that will automatically copy a file from one directory to another?
__________________
Daisey Sean Connery: "Scotch, straight up. Any Single Malt will do." |
|
#2
|
|||
|
|||
|
Hi D&C
I moved your thread to a more appropriate forum. It will get more attention over here. snowbound |
|
#3
|
||||
|
||||
|
You may have to supply more specifics but below is a straight forward batch file that was placed in the Root directory. The file was icq.ico and I wanted it copied to the c:\yb\temp folder.
Code:
cd= change directory yb= name of directory
__________________
Wilders - Terms of Service · Site FAQ · Searching the forum easier · The Art of Quoting in Posts |
|
#4
|
||||
|
||||
|
Quote:
Thanks, Bubba. I am familar with DOS commands. I just don't understand were to enter these commands? A simple text file saved with a .bat extension?
__________________
Daisey Sean Connery: "Scotch, straight up. Any Single Malt will do." |
|
#5
|
||||
|
||||
|
Quote:
![]()
__________________
Wilders - Terms of Service · Site FAQ · Searching the forum easier · The Art of Quoting in Posts |
|
#6
|
||||
|
||||
|
Quote:
That's alright, Bubba. Your failure to mention it made me correctly assume it was something as straightforward as a text file. Thanks again! ![]()
__________________
Daisey Sean Connery: "Scotch, straight up. Any Single Malt will do." |
|
#7
|
|||
|
|||
|
also,
xcopy "%userprofile%\Desktop\MSN.ICO" "%userprofile%\Start Menu\Programs\Msn.ico" /Y that will copy an icon (msn.ico) from the desktop, 2 the start menu > programs and wont ask for any confirmation 2 overwrite that doesnt have 2 be in the same directory as whatever u are wanting 2 copy, just a different alternative Edit: goto start > run > type cmd > then xcopy /? will give a list of switches Regards ![]()
__________________
SpywareBlaster Troubleshooting and Tips & Tricks Favourite Software NOD32-Latest Beta or Stable Release Adaware Spybot SpywareBlaster Opera & Firefox Latest Updates Latest Windows Updates |
|
#8
|
||||
|
||||
|
One more question, Bubba / MCT. Is there a referece for DOS commands anywhere on my XP Home PC?
Edit: Sorry, MCT. I sent my original message before I read your post. THanks!
__________________
Daisey Sean Connery: "Scotch, straight up. Any Single Malt will do." |
|
#9
|
|||
|
|||
|
__________________
SpywareBlaster Troubleshooting and Tips & Tricks Favourite Software NOD32-Latest Beta or Stable Release Adaware Spybot SpywareBlaster Opera & Firefox Latest Updates Latest Windows Updates |
|
#10
|
||||
|
||||
|
Quote:
Exactly what I needed MCT. My batch file is working great, too. I've made one to do some routine PC maintenance. Now if there was only a way to zip a file using DOS commands.... ![]()
__________________
Daisey Sean Connery: "Scotch, straight up. Any Single Malt will do." |
|
#11
|
|||
|
|||
|
lol u can do that too! winrar has command line options i believe
![]() EDIT: http://rarlabs.com/download.htm try winrar.exe /?
__________________
SpywareBlaster Troubleshooting and Tips & Tricks Favourite Software NOD32-Latest Beta or Stable Release Adaware Spybot SpywareBlaster Opera & Firefox Latest Updates Latest Windows Updates |
| « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|
|