-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy pathlnk link command lines and batch hints shortcuts.txt
42 lines (30 loc) · 1.83 KB
/
lnk link command lines and batch hints shortcuts.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Shortcut path for "Start Chat Programs" (Skype and Pidgin)
----------------------------------------------------------
"C:\root\Scripts\Win32\Communications Control.bat"
Shortcut path for Command Prompt
--------------------------------
:: Basic shell, start at root of C:
%SystemRoot%\system32\cmd.exe /k cd\ & cls & echo. & echo Welcome %USERNAME%, & uptime & title Shell
:: Change the color of the terminal (/T:xx command)
%SystemRoot%\system32\cmd.exe /T:8E /k cd\ & cls & echo. & echo Welcome %USERNAME%, & uptime
:: Standalone system
%SystemRoot%\system32\cmd.exe /k R: & cd r:\unsorted\ & cls & echo. & echo Welcome %USERNAME%, & uptime & title %USERNAME% & prompt %USERNAME%@$T$S$P$_$$$S
:: Domain admin
%SystemRoot%\system32\cmd.exe /k R: & cd R:\unsorted\ & cls & echo. & echo Welcome %USERNAME%, & uptime & title %USERDOMAIN% & prompt %USERNAME%@$T$S$S$P$_$$$S
Shortcut path for Powershell
----------------------------
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -NoExit cd r:\unsorted; cls; write-host "" ; write-host "Welcome $env:username`," ; uptime ; write-host ""
DropMyRights.exe
-----------------
C:\WINDOWS\system32\DropMyRights.exe "C:\Program Files\Mozilla Firefox\firefox.exe"
Rename a file using the current day, month and year
---------------------------------------------------
:: Legend:
:: g is year, e is month, f is day
for /f "tokens=1-5 delims=/ " %%d in ("%date%") do (
rename %DESTINATION%\private.ctc private_%%g-%%e-%%f.ctc.bak
)
Assign the output of a command to a variable (in this case called "MARKER"). Notice the escaped pipe (^|)
---------------------------------------------------------------------------------------------------------
for /f "delims=" %a in ('dir /b ^| findstr "marker_"') do @set MARKER=%a
for /f "delims=" %a in ('ver') do @set MARKER=%a