MSwindows

From wiki
Revision as of 09:14, 3 September 2020 by Hdridder (talk | contribs)
Jump to navigation Jump to search

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.