Wilders Security Forums  

Go Back   Wilders Security Forums > Software, Hardware and General Services > other software & services
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread
  #1  
Old June 5th, 2004, 01:34 PM
Dazed_and_Confused's Avatar
Dazed_and_Confused Dazed_and_Confused is offline
Very Frequent Poster
 
Join Date: Mar 2004
Location: USA
Posts: 1,831
Thumbs up Create Batch File

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  
Old June 5th, 2004, 01:38 PM
snowbound snowbound is offline
Retired Moderator
 
Join Date: Feb 2003
Location: The Big Smoke
Posts: 8,727
Default Re: Create Batch File

Hi D&C

I moved your thread to a more appropriate forum.

It will get more attention over here.


snowbound
  #3  
Old June 5th, 2004, 01:50 PM
Bubba's Avatar
Bubba Bubba is offline
Global Moderator
 
Join Date: Apr 2002
Posts: 11,279
Default Re: Create Batch File

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\yb copy icq.ico c:\yb\temp

cd= change directory
yb= name of directory
  #4  
Old June 5th, 2004, 02:10 PM
Dazed_and_Confused's Avatar
Dazed_and_Confused Dazed_and_Confused is offline
Very Frequent Poster
 
Join Date: Mar 2004
Location: USA
Posts: 1,831
Default Re: Create Batch File

Quote:
Originally Posted by Bubba
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.

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  
Old June 5th, 2004, 02:33 PM
Bubba's Avatar
Bubba Bubba is offline
Global Moderator
 
Join Date: Apr 2002
Posts: 11,279
Default Re: Create Batch File

Quote:
Originally Posted by Dazed_and_Confused
I just don't understand were to enter these commands? A simple text file saved with a .bat extension?
Exactly....and I'm sorry I assumed wrongly that part was understood
  #6  
Old June 5th, 2004, 02:36 PM
Dazed_and_Confused's Avatar
Dazed_and_Confused Dazed_and_Confused is offline
Very Frequent Poster
 
Join Date: Mar 2004
Location: USA
Posts: 1,831
Default Re: Create Batch File

Quote:
Originally Posted by Bubba
Exactly....and I'm sorry I assumed wrongly that part was understood

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  
Old June 5th, 2004, 02:39 PM
MCT MCT is offline
Frequent Poster
 
Join Date: Mar 2004
Posts: 300
Default Re: Create Batch File

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  
Old June 5th, 2004, 02:40 PM
Dazed_and_Confused's Avatar
Dazed_and_Confused Dazed_and_Confused is offline
Very Frequent Poster
 
Join Date: Mar 2004
Location: USA
Posts: 1,831
Default Re: Create Batch File

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  
Old June 5th, 2004, 03:27 PM
MCT MCT is offline
Frequent Poster
 
Join Date: Mar 2004
Posts: 300
Default Re: Create Batch File

also, this site is quite good,

http://www.computerhope.com/msdos.htm
__________________
SpywareBlaster Troubleshooting and Tips & Tricks
Favourite Software
NOD32-Latest Beta or Stable Release
Adaware Spybot SpywareBlaster Opera & Firefox Latest Updates
Latest Windows Updates
  #10  
Old June 5th, 2004, 04:01 PM
Dazed_and_Confused's Avatar
Dazed_and_Confused Dazed_and_Confused is offline
Very Frequent Poster
 
Join Date: Mar 2004
Location: USA
Posts: 1,831
Default Re: Create Batch File

Quote:
Originally Posted by MCT
also, this site is quite good,
http://www.computerhope.com/msdos.htm

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  
Old June 5th, 2004, 04:20 PM
MCT MCT is offline
Frequent Poster
 
Join Date: Mar 2004
Posts: 300
Default Re: Create Batch File

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
 

Wilders Security Forums > Software, Hardware and General Services > other software & services « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Settings
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:54 PM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums