Startup scripts on windows
source link: https://andrewpwheeler.com/2022/12/24/startup-scripts-on-windows/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Startup scripts on windows
Just a very quick post today. For folks working on Unix machines, there is a bash profile script that runs when you first log into your user, and can set various environment variables, symlinks, or just run scripts in general. On windows, you can do something similar by placing program.bat
files in the shell startup directory. (That linked post by Microsoft has the directions to find where that is located on your machine. Hit Windows Logo + R
and type shell:startup
into the prompt. It ends up being C:\Users\andre\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
on my personal machine.)
One I have is to map regular folders I use to particular drive letters (similar in outcomes to symlinks on Unix machines) using the subst
command. So in that startup directory I have a file, ghub_map.bat
, that contains this single line:
subst g: "D:\Dropbox\Dropbox\PublicCode_Git"
And so when I log into my machine, if I want to go and do work on github I can just do type G:
in the windows terminal (to switch drives you don’t use cd
in windows). This is in place of the more onerous, D:
(default terminal starts in C:
), and then cd ./Dropbox/Dropbox/PublicCode_Git
.
Happy holidays everyone!
Recommend
-
137
My Dot Files I don't know any geek worth his weight in arsenic that doesn't put all of his/her collection of dot files under source code control. By putting this stuff up on Github makes it trivial to share between different computers and...
-
92
vim-bufkill Note re github repo This repo hit some issues, seemingly due to git changes that appear to have broken git subtree push. I mistakenly pushed about 4000 unrelated commits into the repo. I've tried to fix things with h...
-
112
vim-scripts/SearchComplete master
-
108
README This is a mirror of
-
77
vanhoefm/krackattacks-scripts research
-
10
Schedule Your Python Scripts On Windows PlatformProductivity At Your Fingertips
-
8
Originally posted on my Blog. What's AutoHotkey AHK is an
-
9
<?xml encoding="utf-8" ??>You can add and assign scripts to your Vultr cloud server instances in the Customer Portal or through the
-
5
Microsoft issues PowerShell scripts to fix WinRE BitLocker bypass on Windows 11, Windows 10...
-
10
Microsoft issues PowerShell scripts for multiple Windows 11, Windows 10 security flaws...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK