How to pin either a Batch file to Windows 7, 8 and 10 Taskbar
change target to something like: cmd.exe /C “path-to-your-batch”
change target to something like: cmd.exe /C “path-to-your-batch”
Shift + Restart
References
https://www.digitalcitizen.life/4-ways-boot-safe-mode-windows-10
for example change GOPATH for current CMD session with set and use setx to set permanently
set GOPATH=C:\Projects\mediasync\go
References
https://superuser.com/questions/79612/setting-and-getting-windows-environment-variables-from-the-command-prompt
https://ss64.com/nt/set.html
https://ss64.com/nt/setx.html
Safe Mode:
Type this in a command prompt and hit Enter:
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service"
Then start the Windows Installer service by typing
net start msiserver
References
http://www.thewindowsclub.com/make-windows-installer-work-in-safe-mode
sc delete ServiceName
Example :
sc delete “Adobe LM Service”
References :
http://www.howtogeek.com/howto/windows-vista/how-to-delete-a-windows-service-in-vista-or-xp/
Keywords :
remove , delete , windows , service
forward port :
netsh interface portproxy add v4tov4 listenport=2468 listenaddress=172.20.63.234 connectport=8580 connectaddress=127.0.0.1
To remove forwarding:
netsh interface portproxy delete v4tov4 listenport=2468 listenaddress=172.20.63.234
References :
http://stackoverflow.com/questions/11525703/port-forwarding-in-windows
Run the SFC Command to Repair System Files
sfc /scannow
Run the DISM Command to Fix SFC Problems
DISM /Online /Cleanup-Image /RestoreHealth
References :
http://www.howtogeek.com/222532/how-to-repair-corrupted-windows-system-files-with-the-sfc-and-dism-commands/
mkdir c:\data\db mkdir c:\data\log
create a file at C:\mongodb\mongod.cfg
systemLog: destination: file path: c:\data\log\mongod.log storage: dbPath: c:\data\db
Install the MongoDB service
"C:\mongodb\bin\mongod.exe" --config "C:\mongodb\mongod.cfg" --install
Start the MongoDB service
net start MongoDB
Stop or remove the MongoDB service as needed
net stop MongoDB
"C:\mongodb\bin\mongod.exe" --remove
References :
https://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/
[run] Filename: {sys}\sc.exe; Parameters: "create mysrv start= auto binPath= ""{app}\mysrv.exe""" ; Flags: runhidden [UninstallRun] Filename: {sys}\sc.exe; Parameters: "stop mysrv" ; Flags: runhidden Filename: {sys}\sc.exe; Parameters: "delete mysrv" ; Flags: runhidden
References
http://stackoverflow.com/questions/16517974/inno-setup-installing-windows-services-using-sc-create