Avatar billede 3string Nybegynder
14. februar 2002 - 18:31 Der er 8 kommentarer og
1 løsning

Schedule via bat-fil

Jeg mener at have læst, at man kan oprette en opgave i Windows egen schedule med en kommando, som jeg mener hedder et eller andet med 'an'. Men hvordan gør man og hvad hedder komandoen helt rigtig?
Avatar billede snowball Novice
14. februar 2002 - 19:41 #1
Tror du tænker på kommandoen "at" !? ;)

At
Lists scheduled commands or schedules commands and programs to run on a computer at a specified time and date. The Schedule service must be running to use the at command.

at [\\computername] [[id] [/delete] | /delete [/yes]]

at [\\computername] time [/interactive] [/every:date[,...] | /next:date[,...]] command

Parameters

none

Used without parameters, at lists scheduled commands.

\\computername

Specifies a remote computer. If this parameter is omitted, the commands are scheduled on the local computer.

id

Specifie the identification number assigned to a scheduled command.

/delete

Cancels a scheduled command. If id is omitted, all the scheduled commands on the computer are canceled.

/yes

Forces a yes answer to all queries from the system when deleting scheduled events.

time

Specifies the time when the command is to run. Time is expressed as hours:minutes in 24-hour notation (00:00 [midnight] through 23:59).

/interactive

Allows the job to interact with the desktop of the user who is logged on at the time the job runs.

/every:date[,...]

Runs the command on every specified day or days of the week or month (for example, every Thursday, or the third day of every month). Specify date as one or more days of the week (M,T,W,Th,F,S,Su) or one or more days of the month (using numbers 1 through 31). Separate multiple date entries with commas. If date is omitted, the current day of the month is assumed.

/next:date[,...]

Runs the specified command on the next occurrence of the day (for example, next Thursday). Specify date as one or more days of the week (M,T,W,Th,F,S,Su) or one or more days of the month (using numbers 1 through 31). Separate multiple date entries with commas. If date is omitted, the current day of the month is assumed.

command

Specifies the Windows 2000 command, program (.exe or .com file), or batch program (.bat or .cmd file) to be run. When the command requires a path as an argument, use the absolute path, that is, the entire path beginning with the drive letter. If the command is on a remote computer, specify UNC notation for the server and share name, rather than a remote drive letter. If the command is not an executable (.exe) file, you must precede the command with cmd /c; for example:

cmd /c dir > c:\test.out

Snowball
Avatar billede karlslund Nybegynder
14. februar 2002 - 20:37 #2
Hvad skal du bruge den til - snowball's dump af hjælpesiden kan måske virke lidt intimiderende.

Sig til hvis du skal bruge et eksempel.
Avatar billede scandal Nybegynder
15. februar 2002 - 08:20 #3
AT bruges da kun hvis man har "den gamle schedule" (mener den hedder "Scheduler", hvor den anden hedder "Scheduled tasks") eller hva' ?
Hvis det bare er en bat-fil, der skal eksekveres fra "Scheduled Tasks, er der ikke det store problem, men hvis det er den anden, er det rigtig nok  med "at" kommandoen.
Avatar billede karlslund Nybegynder
15. februar 2002 - 10:22 #4
Nej, "Scheduled tasks" er bare en pæn indpakning af "Scheduler"-servicen. "at" er kommandolinie-versionen af "Scheduler"-servicen.
Avatar billede 3string Nybegynder
15. februar 2002 - 11:26 #5
snowball kom med det, som jeg søgte, nemlig at kommendoen hed 'at' og så hvordan man skulle bruge den. Resten skal jeg nok finde ud af.
Så snowball læg et svar for at få pointene
Avatar billede snowball Novice
15. februar 2002 - 11:43 #6
Svar :)

Snowball
Avatar billede 3string Nybegynder
15. februar 2002 - 11:52 #7
Så så...hehe
Avatar billede scandal Nybegynder
15. februar 2002 - 13:11 #8
Karlslund > Det var sådan set også det jeg prøve at sige ... men jeg pakkede det nok for pænt ind  ;-)
Avatar billede karlslund Nybegynder
15. februar 2002 - 14:59 #9
Okay ...

Det er også svært at vide hvilket niveau man skal svare folk på her.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester