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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with a script/Batch

Status
Not open for further replies.

BobSakemano

Technical User
Feb 17, 2005
20
0
0
NL
Can someone make a script or batch file for me that does this:

-Net Stop “Microsoft Exchange Information Store”
-Cd c:\program files\Exchange\bin\
-Eseutil /d c:\program files\db\x.edb
-Net Start “Microsoft Exchange Information Store”

I came across a few problems when I wanted to do it on my own, first off dos has a problem with program files, I tried “program~`” but it doesn’t seem to work right. Second thing is that the script needs to wait for the Net stop or the Defrag to finish before moving on to the next command line. What’s the best way to do this?
 
Replace this:
Cd c:\program files\Exchange\bin\
Eseutil /d c:\program files\db\x.edbBy this:
Cd "c:\program files\Exchange\bin\"
Eseutil /d "c:\program files\db\x.edb"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
yea that worked, I made a cmd file.

Is there anyway to get the output in to a txt file? > c:\outputlog.txt didnt work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top