Answered by:
FTP Server indítása/leállítása parancssorból, amelyet külső programból

Question
-
A címben nagyjából benne is van minden. :-) Szeretném a konfigurált és működőképes ftp szervert időszakosan parancssor vagy más egyéb, programból ütemezhető módon elindítani és megállítani. Van valakinek ötlete ezzel kapcsolatban?
Wednesday, October 1, 2008 12:04 PM
Answers
-
net stop msftpsvc
net start msftpsvc
Wednesday, October 1, 2008 12:09 PM
All replies
-
net stop msftpsvc
net start msftpsvc
Wednesday, October 1, 2008 12:09 PM -
Hibaüzenetet kapok:
C:\Windows>net stop msftpsvc
A megadott nevet (net) a rendszer nem ismeri fel belső vagy külső
parancsként, futtatható programként vagy kötegfájlként.
Mit bénázok el?Wednesday, October 1, 2008 12:18 PM -
Akkor windows 2008-ad van?
Code Snippetsc [<ServerName>] stop <ServiceName>sc [<ServerName>] start <ServiceName>Wednesday, October 1, 2008 12:44 PM -
Címből nem derül ki, hogy Windows 2008 Standard-ra kellene megoldás, 32 bit-es verzióra.Wednesday, October 1, 2008 12:44 PM
-
Ezek szerint így nézne ki a kód:
svc \\szamitogepnev stop ftpservernev
???Wednesday, October 1, 2008 1:08 PM -
Nem.
Code SnippetStarts a service.
For examples of how to use this command, see Examples.
Syntax
sc [<ServerName>] start <ServiceName> [<ServiceArguments>]
Parameters
Parameter Description <ServerName>
Specifies the name of the remote server on which the service is located. The name must use the Universal Naming Convention (UNC) format (for example, \\myserver). To run SC.exe locally, omit this parameter.
<ServiceName>
Specifies the service name returned by the getkeyname operation.
<ServiceArguments>
Specifies the service arguments to pass to the service to be started.
/?
Displays help at the command prompt.
Examples
To start the TAPISRV service on the local computer, type:
sc start tapisrv
A command reference letölthető: (http://www.microsoft.com/downloads/details.aspx?familyid=5fb255ff-72da-4b08-a504-1b10266cf72a&displaylang=en)
Wednesday, October 1, 2008 1:24 PM -
Köszi a segítséget! A később jövőknek egy kis szájbarágósabb verzió a megoldásról alant...
Parancssor megnyitva a C:\Windows\System32> könyvtáron (Csak a system32 könyvtárból indítva futott le nekem)
Beírva a következő parancsot
C:\Windows\System32>sc \\szamitogepnev stop msftpsvc
(Leállítás)
C:\Windows\System32>sc \\szamitogepnev start msftpsvc (indítás)
Sok sikert mindenkinek!Wednesday, October 1, 2008 1:37 PM