If no parameters are specified or the only parameters specified are the option type parameters starting with / then a dialog is presented allowing the page file drive and size to be selected. The option type parameters are only for controlling the behavior of the dialog.
The /a<TimeoutOption> option parameter species what happens when the timeout with the value specified by the /t option parameter triggers. If /a0 is specified then on the timeout the dialog is cancelled and no pagefile is created. If /a1 is specified then a page file will be created on the first drive in the dialog with the minimum size specified by the /i option parameter and the maximum size specified by the /m option parameter. If no /m option parameter is specified then the maximum size will be the same as the minimum size.
The /f<PageFileName> option parameter allows the name of the page file to be changed from the default pagefile.sys when the dialog is used to select the page file drive.
The /t<Timeout> option parameter specifies the timeout period in milliseconds after which the dialog is dismissed. Note that if a drive selection change is made in the list box or if focus is given to one of the size text boxes then the timer is cancelled.
The /i<MinimumSize> option parameter specifies the minimum size in megabytes of the page file that is created if chosen from the dialog and no size is entered in the minimum size textbox in the dialog. This is the value that will be used for the pagefile minimum size if the dialog times out.
The /i<MaximumSize> option parameter specifies the maximum size in megabytes of the page file that is created if chosen from the dialog and no size is entered in the maximum size textbox in the dialog. This is the value that will be used for the pagefile maximum size if the dialog times out.
The remaining three parameters are only used when the drive selection dialog is not used.
The <FileName> parameter must be a full path to the page file like c:\pagefile.sys
The <MinimumPageFileSize> parameter specifies the minimum page size in megabytes.
The optional <MaximumPageFileSize> parameter specifies the maximum page size in megabytes. If the parameter is not specified then the maximum size is set to be the same as the minimum size.
Example usage:
SetPageFile c:\pagefile.sys 512
This creates a page file named c:\pagefile.sys of size 512 megabyte
SetPageFile /t30000 /a1 /i512
This shows the dialog for 30 seconds and will create a 512 megabyte pagefile named pagefile.sys on the first drive shown in the dialog if the dialog times out.