text
stringlengths
0
4.23k
To remove the file type association for a file name extension, add a white space after the equal sign by pressing the SPACEBAR.
To associate files without extension to a file type, use just a dot (see the examples).
To view current file types that have open command strings defined, use the ftype command.
To redirect the output of assoc to a text file, use the > redirection operator.
>
Examples
To view the current file type association for the file name extension .txt, type:
assoc .txt
To remove the file type association for the file name extension .bak, type:
assoc .bak=
Note
Make sure you add a space after the equal sign.
To view the output of assoc one screen at a time, type:
assoc | more
To send the output of assoc to the file assoc.txt, type:
assoc>assoc.txt
Associatie .log to text files:
assoc .log=txtfile
Associatie files with no extension to text files:
assoc .=txtfile
at
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Schedules commands and programs to run on a computer at a specified time and date. You can use at only when the Schedule service is running. Used without parameters, at lists scheduled commands. You must be a member of the local Administrators group to run this command.
Syntax
at [\computername] [[id] [/delete] | /delete [/yes]]
at [\computername] <time> [/interactive] [/every:date[,...] | /next:date[,...]] <command>
Parameters
Parameter
Description
\<computername\>
Specifies a remote computer. If you omit this parameter, at schedules the commands and programs on the local computer.
<id>
Specifies the identification number assigned to a scheduled command.
/delete
Cancels a scheduled command. If you omit ID, all of the scheduled commands on the computer are canceled.
/yes
Answers yes to all queries from the system when you delete scheduled events.
<time>
Specifies the time when you want to run the command. time is expressed as Hours:Minutes in 24-hour notation (that is, 00:00 (midnight) through 23:59).
interactive
Allows command to interact with the desktop of the user who is logged on at the time Command runs.
every:
Runs command on every specified day or days of the week or month (for example, every Thursday, or the third day of every month).
<date>
Specifies the date when you want to run the command. You can specify one or more days of the week (that is, type M,T,W,Th,F,S,Su) or one or more days of the month (that is, type 1 through 31). Separate multiple date entries with commas. If you omit date, at uses the current day of the month.
next:
Runs command on the next occurrence of the day (for example, next Thursday).
<command>
Specifies the Windows command, program (that is, .exe or .com file), or batch program (that is, .bat or .cmd file) that you want to 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 Universal Naming Convention (UNC) notation for the server and share name, rather than a remote drive letter.
/?
Displays help at the command prompt.
\<computername\>
<id>
<time>
<date>
<command>
Remarks
This command doesn't automatically load cmd.exe before running commands. If you're not running an executable (.exe) file, you must explicitly load cmd.exe at the beginning of the command as follows:
cmd /c dir > c:\test.out
If using this command without command-line options, scheduled tasks appear in a table formatted similar to the following:
Status ID Day time Command Line
OK 1 Each F 4:30 PM net send group leads status due
OK 2 Each M 12:00 AM chkstor > check.file
OK 3 Each F 11:59 PM backup2.bat
If including an identification number (ID) with this command, only information for a single entry appears in a format similar to the following:
Task ID: 1
Status: OK
Schedule: Each F