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

Start\Stop FTP Server From Command Line 1

Status
Not open for further replies.

Michael42

Programmer
Joined
Oct 8, 2001
Messages
1,454
Location
US
Hello,

In Windows 2000 Server running IIS (with FTP server), how can I start and stop the FTP server from the command line?

I wish to place this in a batch file.

Thanks,

Michael42
 
To stop: net stop msftpsvc
To start. net start msftpsvc

This works in a commandprompt; don´t know if it´ll work from .bat/.cmd
 
jakob314,

Thanks for posting.

Yes it works fine from batch file too. :-)
 
another suggestion

you do not need to do this in two lines

can be one..but doesnt matter

net stop servicename & net start servicename all on one line
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top