Mantenimiento automatico

11/06/2004 - 16:50 por A.Irigoyen | Informe spam
Buenas
¿Hay alguna forma de hacer el mantenimiento de los discos (chkdsk y defrag)
de forma simultanea o sucesiva pero conjunta y tambien automatica?.
Lo digo porque cuando tienes varias particiones, es un engorro hacerlo de
forma manual y de uno en uno, con las pausas que requiere entre sí.
No se pero pensaba en algun bat en el programador de tareas o algo asi.
Agradezco las sugerencias y forma de llevarlo a cabo
Saludos
Santal

Preguntas similare

Leer las respuestas

#1 Javier Inglés [MS MVP]
11/06/2004 - 17:02 | Informe spam
http://www.compu-docs.com/W2KDfrag.htm



Description
Windows XP Professional has a command line utility that allows users to schedule the execution of tasks. The schtasks utility has a wide variety of options. This recipe provides a simple example of scheduling a task to run once in the future.


Directions
The minimum parameters required to run a task once are /sc (schedule), /tr (task to run), /st (start time), and /tn (unique task name). This syntax will run the task as the current user. To run the defrag program on the C: drive at 11 PM, use this command:



schtasks /create /sc once /st 23:00:00 /tn cdefrag /tr "defrag c:"



The schedule (/sc once) indicates that the task will only be executed once. The start time (/st 23:00:00) determines the time (HH:MM:SS) that the task will start in the 24 hour format. The task name (/th cdefrag) must be a unique name that can be used to reference the scheduled task later. The task to run (/tr "defrag c:") specifies the command and parameters to run. Enclosing the task to run in quotes is required for tasks with options.

When you run the command above, it will tell you the user the task will run under (the current user) and will prompt for that user's password. It is possible to place the password in the command (using /rp password) although to do so may be a security risk -- use at your own risk.

If you want to run the task as another user, specify the username with the /ru username command option.

By default, the task will execute within the next 24 hours at the next occurance of the start time. To run the command at the speficied time on a different date, use the /sd mm/dd/yyyy option.

To view the scheduled events, just run schtasks with no options.



Salu2!!!

Javier Inglés, MS-MVP
http://mvp.support.microsoft.com/default.aspx

:
<<<QUITAR "NOSPAM" PARA MANDAR MAIL>>>

Este mensaje se proporciona "como está" sin garantías de ninguna clase, y no otorga ningún derecho


"A.Irigoyen" escribió en el mensaje news:WEjyc.903362$
Buenas
¿Hay alguna forma de hacer el mantenimiento de los discos (chkdsk y defrag)
de forma simultanea o sucesiva pero conjunta y tambien automatica?.
Lo digo porque cuando tienes varias particiones, es un engorro hacerlo de
forma manual y de uno en uno, con las pausas que requiere entre sí.
No se pero pensaba en algun bat en el programador de tareas o algo asi.
Agradezco las sugerencias y forma de llevarlo a cabo
Saludos
Santal


Respuesta Responder a este mensaje
#2 Freddy Canales
12/06/2004 - 01:30 | Informe spam
Me Puedes explicar como funciona.. manda alguna aplicacion cuando se
ejecuta. o algo haci

"Javier Inglés [MS MVP]" escribió en el
mensaje news:


http://www.compu-docs.com/W2KDfrag.htm



Description
Windows XP Professional has a command line utility that allows users
to schedule the execution of tasks. The schtasks utility has a wide variety
of options. This recipe provides a simple example of scheduling a task to
run once in the future.


Directions
The minimum parameters required to run a task once are /sc (schedule),
/tr (task to run), /st (start time), and /tn (unique task name). This syntax
will run the task as the current user. To run the defrag program on the C:
drive at 11 PM, use this command:



schtasks /create /sc once /st 23:00:00 /tn cdefrag /tr "defrag
c:"



The schedule (/sc once) indicates that the task will only be executed
once. The start time (/st 23:00:00) determines the time (HH:MM:SS) that the
task will start in the 24 hour format. The task name (/th cdefrag) must be a
unique name that can be used to reference the scheduled task later. The task
to run (/tr "defrag c:") specifies the command and parameters to run.
Enclosing the task to run in quotes is required for tasks with options.

When you run the command above, it will tell you the user the task
will run under (the current user) and will prompt for that user's password.
It is possible to place the password in the command (using /rp password)
although to do so may be a security risk -- use at your own risk.

If you want to run the task as another user, specify the username with
the /ru username command option.

By default, the task will execute within the next 24 hours at the next
occurance of the start time. To run the command at the speficied time on a
different date, use the /sd mm/dd/yyyy option.

To view the scheduled events, just run schtasks with no options.



Salu2!!!

Javier Inglés, MS-MVP
http://mvp.support.microsoft.com/default.aspx

:
<<<QUITAR "NOSPAM" PARA MANDAR MAIL>>>

Este mensaje se proporciona "como está" sin garantías de ninguna clase, y no
otorga ningún derecho


"A.Irigoyen" escribió en el mensaje
news:WEjyc.903362$
Buenas
¿Hay alguna forma de hacer el mantenimiento de los discos (chkdsk y


defrag)
de forma simultanea o sucesiva pero conjunta y tambien automatica?.
Lo digo porque cuando tienes varias particiones, es un engorro hacerlo de
forma manual y de uno en uno, con las pausas que requiere entre sí.
No se pero pensaba en algun bat en el programador de tareas o algo asi.
Agradezco las sugerencias y forma de llevarlo a cabo
Saludos
Santal


Respuesta Responder a este mensaje
#3 A.Irigoyen
14/06/2004 - 08:26 | Informe spam
Gracias Javier
Aunque no se ingles me he apañado con un traductor automatico.
La solucion es buena y sencilla: Un bat que ejecuta sucesivamente "el
defrag" en cada particion
Este bat se puede meter en programador de tareas.
El problema es mas complejo con el chkdsk, ya que para scandixar la
particion donde está el SO, habría que reiniciar, con lo cual desde un
archivo bat no se puede ejecutar, o ¿hay alguna linea de código por la que
se pueda hacer reiniciar el Pc y decirle que al arrancar haga "chkdsk" sobre
la particion del SO?
Saludos
Santal

"Javier Inglés [MS MVP]" escribió en el
mensaje news:


http://www.compu-docs.com/W2KDfrag.htm



Description
Windows XP Professional has a command line utility that allows users
to schedule the execution of tasks. The schtasks utility has a wide variety
of options. This recipe provides a simple example of scheduling a task to
run once in the future.


Directions
The minimum parameters required to run a task once are /sc (schedule),
/tr (task to run), /st (start time), and /tn (unique task name). This syntax
will run the task as the current user. To run the defrag program on the C:
drive at 11 PM, use this command:



schtasks /create /sc once /st 23:00:00 /tn cdefrag /tr "defrag
c:"



The schedule (/sc once) indicates that the task will only be executed
once. The start time (/st 23:00:00) determines the time (HH:MM:SS) that the
task will start in the 24 hour format. The task name (/th cdefrag) must be a
unique name that can be used to reference the scheduled task later. The task
to run (/tr "defrag c:") specifies the command and parameters to run.
Enclosing the task to run in quotes is required for tasks with options.

When you run the command above, it will tell you the user the task
will run under (the current user) and will prompt for that user's password.
It is possible to place the password in the command (using /rp password)
although to do so may be a security risk -- use at your own risk.

If you want to run the task as another user, specify the username with
the /ru username command option.

By default, the task will execute within the next 24 hours at the next
occurance of the start time. To run the command at the speficied time on a
different date, use the /sd mm/dd/yyyy option.

To view the scheduled events, just run schtasks with no options.



Salu2!!!

Javier Inglés, MS-MVP
http://mvp.support.microsoft.com/default.aspx

:
<<<QUITAR "NOSPAM" PARA MANDAR MAIL>>>

Este mensaje se proporciona "como está" sin garantías de ninguna clase, y no
otorga ningún derecho


"A.Irigoyen" escribió en el mensaje
news:WEjyc.903362$
Buenas
¿Hay alguna forma de hacer el mantenimiento de los discos (chkdsk y


defrag)
de forma simultanea o sucesiva pero conjunta y tambien automatica?.
Lo digo porque cuando tienes varias particiones, es un engorro hacerlo de
forma manual y de uno en uno, con las pausas que requiere entre sí.
No se pero pensaba en algun bat en el programador de tareas o algo asi.
Agradezco las sugerencias y forma de llevarlo a cabo
Saludos
Santal


Respuesta Responder a este mensaje
#4 Antonio Amengual[MSMVP]
14/06/2004 - 08:42 | Informe spam
te sale mas a cuenta activar el bit "sucio" dirty bit con lo cual te
realizará un scandisk mucho mas riguroso que un chkdsk normal
basta que en una sesion dos teclees fsutil /?

fsutil dirty X: set

siendo X la unidad donde el S.O. reside



Bienvenidos al sitio de MVP de Microsoft
http://mvp.support.microsoft.com/

Recuerda: Una Consulta, Un Foro:
news:microsoft.public.es.outlookexpress
news:microsoft.public.es.windowsxp
news:microsoft.public.es.windowsxp.aplicaciones
news:microsoft.public.es.windowsxp.hardware
news:microsoft.public.es.windowsxp.instalacion
news:microsoft.public.es.windowsxp.seguridad



Este mensaje se proporciona "como está" sin garantías de ninguna clase, y no
otorga ningún derecho.

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.


XP Pro-2600-limpia+SP1

por favor
respuestas al grupo; asi nos beneficiamos todos
no se responde personalmente

saludos

Antonio
ms mvp windowsxp shell user

"A.Irigoyen" wrote in message
news:zybzc.944693$
Gracias Javier
Aunque no se ingles me he apañado con un traductor automatico.
La solucion es buena y sencilla: Un bat que ejecuta sucesivamente "el
defrag" en cada particion
Este bat se puede meter en programador de tareas.
El problema es mas complejo con el chkdsk, ya que para scandixar la
particion donde está el SO, habría que reiniciar, con lo cual desde un
archivo bat no se puede ejecutar, o ¿hay alguna linea de código por la que
se pueda hacer reiniciar el Pc y decirle que al arrancar haga "chkdsk"
sobre
la particion del SO?
Saludos
Santal

"Javier Inglés [MS MVP]" escribió en el
mensaje news:


http://www.compu-docs.com/W2KDfrag.htm



Description
Windows XP Professional has a command line utility that allows users
to schedule the execution of tasks. The schtasks utility has a wide
variety
of options. This recipe provides a simple example of scheduling a task to
run once in the future.


Directions
The minimum parameters required to run a task once are /sc
(schedule),
/tr (task to run), /st (start time), and /tn (unique task name). This
syntax
will run the task as the current user. To run the defrag program on the C:
drive at 11 PM, use this command:



schtasks /create /sc once /st 23:00:00 /tn cdefrag /tr "defrag
c:"



The schedule (/sc once) indicates that the task will only be executed
once. The start time (/st 23:00:00) determines the time (HH:MM:SS) that
the
task will start in the 24 hour format. The task name (/th cdefrag) must be
a
unique name that can be used to reference the scheduled task later. The
task
to run (/tr "defrag c:") specifies the command and parameters to run.
Enclosing the task to run in quotes is required for tasks with options.

When you run the command above, it will tell you the user the task
will run under (the current user) and will prompt for that user's
password.
It is possible to place the password in the command (using /rp password)
although to do so may be a security risk -- use at your own risk.

If you want to run the task as another user, specify the username
with
the /ru username command option.

By default, the task will execute within the next 24 hours at the
next
occurance of the start time. To run the command at the speficied time on a
different date, use the /sd mm/dd/yyyy option.

To view the scheduled events, just run schtasks with no options.



Salu2!!!

Javier Inglés, MS-MVP
http://mvp.support.microsoft.com/default.aspx

:
<<<QUITAR "NOSPAM" PARA MANDAR MAIL>>>

Este mensaje se proporciona "como está" sin garantías de ninguna clase, y
no
otorga ningún derecho


"A.Irigoyen" escribió en el mensaje
news:WEjyc.903362$
Buenas
¿Hay alguna forma de hacer el mantenimiento de los discos (chkdsk y


defrag)
de forma simultanea o sucesiva pero conjunta y tambien automatica?.
Lo digo porque cuando tienes varias particiones, es un engorro hacerlo de
forma manual y de uno en uno, con las pausas que requiere entre sí.
No se pero pensaba en algun bat en el programador de tareas o algo asi.
Agradezco las sugerencias y forma de llevarlo a cabo
Saludos
Santal






Respuesta Responder a este mensaje
#5 A.Irigoyen
14/06/2004 - 09:19 | Informe spam
Gracias Antonio
Al que le interese este hilo, y esta contestacion, es aconsejable que lo
complete con la explicación de la ayuda de windows (fsutil).Es facil.
Saludos
Santal

"Antonio Amengual[MSMVP]" escribió en el mensaje
news:
te sale mas a cuenta activar el bit "sucio" dirty bit con lo cual te
realizará un scandisk mucho mas riguroso que un chkdsk normal
basta que en una sesion dos teclees fsutil /?

fsutil dirty X: set

siendo X la unidad donde el S.O. reside



Bienvenidos al sitio de MVP de Microsoft
> http://mvp.support.microsoft.com/
>
> Recuerda: Una Consulta, Un Foro:
> news:microsoft.public.es.outlookexpress
> news:microsoft.public.es.windowsxp
> news:microsoft.public.es.windowsxp.aplicaciones
> news:microsoft.public.es.windowsxp.hardware
> news:microsoft.public.es.windowsxp.instalacion
> news:microsoft.public.es.windowsxp.seguridad

Este mensaje se proporciona "como está" sin garantías de ninguna clase, y


no
otorga ningún derecho.

This posting is provided "AS IS" with no warranties, and confers no


rights.
You assume all risk for your use.


XP Pro-2600-limpia+SP1

por favor
respuestas al grupo; asi nos beneficiamos todos
no se responde personalmente

saludos

Antonio
ms mvp windowsxp shell user

"A.Irigoyen" wrote in message
news:zybzc.944693$
> Gracias Javier
> Aunque no se ingles me he apañado con un traductor automatico.
> La solucion es buena y sencilla: Un bat que ejecuta sucesivamente "el
> defrag" en cada particion
> Este bat se puede meter en programador de tareas.
> El problema es mas complejo con el chkdsk, ya que para scandixar la
> particion donde está el SO, habría que reiniciar, con lo cual desde un
> archivo bat no se puede ejecutar, o ¿hay alguna linea de código por la


que
> se pueda hacer reiniciar el Pc y decirle que al arrancar haga "chkdsk"
> sobre
> la particion del SO?
> Saludos
> Santal
>
> "Javier Inglés [MS MVP]" escribió en el
> mensaje news:
>
>
> http://www.compu-docs.com/W2KDfrag.htm
>
>
>
> Description
> Windows XP Professional has a command line utility that allows


users
> to schedule the execution of tasks. The schtasks utility has a wide
> variety
> of options. This recipe provides a simple example of scheduling a task


to
> run once in the future.
>
>
> Directions
> The minimum parameters required to run a task once are /sc
> (schedule),
> /tr (task to run), /st (start time), and /tn (unique task name). This
> syntax
> will run the task as the current user. To run the defrag program on the


C:
> drive at 11 PM, use this command:
>
>
>
> schtasks /create /sc once /st 23:00:00 /tn cdefrag /tr


"defrag
> c:"
>
>
>
> The schedule (/sc once) indicates that the task will only be


executed
> once. The start time (/st 23:00:00) determines the time (HH:MM:SS) that
> the
> task will start in the 24 hour format. The task name (/th cdefrag) must


be
> a
> unique name that can be used to reference the scheduled task later. The
> task
> to run (/tr "defrag c:") specifies the command and parameters to run.
> Enclosing the task to run in quotes is required for tasks with options.
>
> When you run the command above, it will tell you the user the task
> will run under (the current user) and will prompt for that user's
> password.
> It is possible to place the password in the command (using /rp password)
> although to do so may be a security risk -- use at your own risk.
>
> If you want to run the task as another user, specify the username
> with
> the /ru username command option.
>
> By default, the task will execute within the next 24 hours at the
> next
> occurance of the start time. To run the command at the speficied time on


a
> different date, use the /sd mm/dd/yyyy option.
>
> To view the scheduled events, just run schtasks with no options.
>
>
>
> Salu2!!!
>
> Javier Inglés, MS-MVP
> http://mvp.support.microsoft.com/default.aspx
>
> :
> <<<QUITAR "NOSPAM" PARA MANDAR MAIL>>>
>
> Este mensaje se proporciona "como está" sin garantías de ninguna clase,


y
> no
> otorga ningún derecho
>
>
> "A.Irigoyen" escribió en el mensaje
> news:WEjyc.903362$
>> Buenas
>> ¿Hay alguna forma de hacer el mantenimiento de los discos (chkdsk y
> defrag)
>> de forma simultanea o sucesiva pero conjunta y tambien automatica?.
>> Lo digo porque cuando tienes varias particiones, es un engorro hacerlo


de
>> forma manual y de uno en uno, con las pausas que requiere entre sí.
>> No se pero pensaba en algun bat en el programador de tareas o algo asi.
>> Agradezco las sugerencias y forma de llevarlo a cabo
>> Saludos
>> Santal
>>
>>
>
>


email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida