MSwindows: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
If you | [[Category:MSwindows]] | ||
If you really have to use MSwindows sometimes this may help | |||
==Scripting== | |||
;<nowiki>set now=%date:~<start>,<len>%</nowiki> | ;<nowiki>set now=%date:~<start>,<len>%</nowiki> | ||
:Get a substring from date | :Get a substring from date | ||
| Line 16: | Line 17: | ||
;if ERRORLEVEL <num> ( command ) | ;if ERRORLEVEL <num> ( command ) | ||
:Commands return ERRORLEVEL as exist status. Execute command if the ERRORLEVEL matches <num> | :Commands return ERRORLEVEL as exist status. Execute command if the ERRORLEVEL matches <num> | ||
==Add program to startup== | |||
* Select the Start(Windows) button, then select Settings - Apps - Startup. Make sure any app you want to run at startup is turned On. | |||
If the application is not listed there: | |||
* Select the Start(Windows) button find the app you want to run at startup. | |||
* Open file location (from menu or right-click). This opens the location where the shortcut to the app is saved. If there isn't an option for Open file location, it means the app can't run at startup. | |||
* With the file location open, press the Windows key + R, type: 'shell:startup', then select OK. This opens the Startup folder. | |||
* Copy and paste the shortcut to the app from the file location to the Startup folder. | |||
Revision as of 07:14, 3 September 2020
If you really have to use MSwindows sometimes this may help
Scripting
- set now=%date:~<start>,<len>%
- Get a substring from date
- for /F %%i in (<filename>) do set var1=%%i
- Read filename and set var1 to the content of the file
- if %var1% == %var2% command
- Execute command if var2 is equal to var1. if /I ignores case
- if EXIST file1 ( commandblock )
- Execute the commandblock if file1 exists
- if ERRORLEVEL <num> ( command )
- Commands return ERRORLEVEL as exist status. Execute command if the ERRORLEVEL matches <num>
Add program to startup
- Select the Start(Windows) button, then select Settings - Apps - Startup. Make sure any app you want to run at startup is turned On.
If the application is not listed there:
- Select the Start(Windows) button find the app you want to run at startup.
- Open file location (from menu or right-click). This opens the location where the shortcut to the app is saved. If there isn't an option for Open file location, it means the app can't run at startup.
- With the file location open, press the Windows key + R, type: 'shell:startup', then select OK. This opens the Startup folder.
- Copy and paste the shortcut to the app from the file location to the Startup folder.