Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Making a batch file
Name: Psychokitty Date: January 6, 2008 at 20:28:06 Pacific OS: WindozeXP Home CPU/Ram: Does not matter Product: Does not matter
Comment:
I am wanting to make a batch file that will do several things.
Take a certain file folder (and all its contents) from a certain location and delete it. Then copy over another file folder (and all its contents) into the same folder I just deleted the file folder from. Last but not least I want that folder that was just copied renamed to something else.
Example:
Delete D:\Game\SpecificFolderAndAllCOntentsFromHere Copy Folder From F:\NameOFFolderIWantCopied Rename Folder Just Copied to AddOns
Can anyone help me in this grand scheme please? If you just show me one I can make the other two by copy and pasting. I am at a loss at how to do this I am not very computer minded. I have looked but have not found any that give specific examples on several pages that google found me. This is intended to help me set up a game I play so that it is configured for the activity I am wanting to do.
Name: Mechanix2Go Date: January 6, 2008 at 23:18:10 Pacific
Reply:
deltree y:\old xcopy x:\stuff y:\new\
===================================== If at first you don't succeed, you're about average.
M2
0
Response Number 2
Name: klint Date: January 7, 2008 at 03:12:48 Pacific
Reply:
The deltree was removed in Windows NT and newer systems. You can use RD /S instead. The RD /S command will ask you if you really want to delete the whole diretory tree. If you don't want that, you can use RD /S /Q (quiet but very dangerous mode!)
rd /s /q y:\old (warning: use with caution) xcopy /e x:\stuff y:\new\ ren y:\new AddOns
0
Response Number 3
Name: Psychokitty Date: January 7, 2008 at 10:21:49 Pacific
Reply:
rd /s /q E:\World of Warcraft NEW\Interface\AddOns xcopy /e U:\AddOnsFARM E:\World of Warcraft New\Interface ren E:\World of Warcraft New\Interface\AddOnsFARM AddOns
so this would be correct?
0
Response Number 4
Name: klint Date: January 7, 2008 at 11:42:20 Pacific
Reply:
You need quotes around any paths that contain spaces, such as "E:\World of Warcraft NEW\Interface\AddOns"
Summary: Ok so heres the problem. I am trying to make a batch file that will autorun on a cd and delete a text file I have on my desktop. The autorun works and the batch file does so only if its run twice with...
Summary: hi, im trying to make a batch file to type in my AIM password in the AIM Password text box...heres the code that will/won't work.... echo off title Auto log in cls start aim.exe type login.txt pause ...
Summary: Hi I recently made a batch file which displays certain information for certain people only when they type in their codename. (which only they know) however, i realized that they could easily right ...