Computing.Net > Forums > Windows NT > Simple Batch File Help

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.

Simple Batch File Help

Reply to Message Icon

Name: deathcube
Date: May 16, 2005 at 19:32:47 Pacific
OS: NT 4.0
CPU/Ram: P3 512
Comment:

Hi, I'm sure this is a no brainer for you experts but since I have no brains, here goes: I need a batch file that will stop a SQL service.

Copy contents of a folder from one drive
(D:\) to a folder on another drive (F:\)overwriting the files on the destination folder each time.

Restart the SQL service.

I will setup this up to run with the Task Scheduler.

Many thanks for any help I can get!!



Sponsored Link
Ads by Google

Response Number 1
Name: ntengineer
Date: May 17, 2005 at 10:02:15 Pacific
Reply:

Should be something like this:

net stop MSSQLSERVER
xcopy /S/E/I/Y c:\source d:\target
net start MSSQLSERVER


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: Simple Batch File Help

Win NT batch file Help please www.computing.net/answers/windows-nt/win-nt-batch-file-help-please/11724.html

Easy Batch file question www.computing.net/answers/windows-nt/easy-batch-file-question/6978.html

Writing simple batch file www.computing.net/answers/windows-nt/writing-simple-batch-file/18448.html