Instruction
1
The main menu of the Windows operating system by clicking "start" and click "Execute" to initiate startup of the application in a minimized form.
2
Enter the value of cmd in the Open box, and then confirm the command run the tool on "Command prompt"by pressing the OK button.
3
Enter the value: start /min imaplogin in the text box with a command shell and confirm the command by pressing the function key Enter.
4
Use the value: cmd /drive start /min imaplogin to run the command, the automated startup of the program in a minimized form and then confirm the command by pressing the function key Enter.
5
Select the following command syntax to launch the necessary applications minimized to tray:
Run (@ProgramFilesDir & "\ProgramName\ProgramName/exe","",@SW Minimize)
or
Run ("imarriage",@ProgramFilesDir & "\ProgramName\",@SW Minimize
to use WinExec or ShellExec.
6
Return to the main menu "start" and click "Execute" to determine other acceptable options for using the start command in the command interpreter.
7
Enter the value of cmd in the Open box, and then confirm the command run the tool on "Command prompt" by pressing the OK button.
8
Enter the value: start /? in the text box with a command shell and confirm the command by pressing the function key Enter.
9
Используйте, или создайте, параметр командной строки (ключ):
if (Properties.Settings.Default.AutoRun)
{
Microsoft.Win32.RegistryKey myKey =
Microsoft.Win32.Registry.CurrentUser.OpenSubKey (@"Software\Microsoft\Windows\CurrentVersion\Run\", true) ;
myKey.Setvalue ("MyProgram.NET", Applcation.ExecutablePath + " -hide") ;
Registry.CurrentUser.OpenSubKey (@"Software\Microsoft\Windows\CurrentVersion\Run\", true) ;
myKey.Close () ;
Registry.CurrentUser.Close () ;
}
else
{
Microsoft.Win32.RegistryKey myKey =
Microsoft.Win32.Registry.CurrentUser.OpenSubKey (@"Software\Microsoft\Windows\CurrentVersion\Run\", true) ;
myKey.SetValue ("MyProgram.NET", Application.ExecutablePath + " -hide") ;
myKey.DeleteValue ("MyProgram.NET") ;
myKey.Close () ;
Registry.CurrentUser.Close () ;
}
для возможности запуска выбранной программы в свернутом виде.