Command Prompt shortcut

StrykerChaos

New member
Member
VIP
Local time
1:18 PM
Messages
143
Hello I am 100% new to command prompt so I am asking for a little guidance.
I am lost on part two I simply have no idea what it is asking, do you? I know the /K keeps the command prompt window open after the script is finished. But thats about it.
1· Create a new Windows shell initialization script that automatically adds to the path variable the name and path of the folder where you plan to store your Windows shell scripts.
the script bellow is saved in C:\scripts\PathMod.bat
**********************
@ECHO off
PATH C:\scripts;%path%
***********************

2· Create a new Command Prompt shortcut and configure it to automatically execute your new Windows shell initialization script. Hint: Use the /K switch and specify the complete path of the folder where the scripts reside.
I know I can create a short cut for the command prompt and have it start in C:\scripts but I have no idea how to use the /k switch to execute the shell initialization script.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
samsung
OS
windows 8 x64
CPU
intel core i7-365qm cpu @ 2.40ghz 2.40ghz
Motherboard
?
Memory
8GB
Graphics Card(s)
?
Hard Drives
1Tb
Antivirus
?
Browser
firefox, chrome
I think I have figured out how to do it by modifying the short cut's target: C:\Windows\System32\cmd.exe cmd /K C:\Scripts\PathMod.bat
I am not sure it is correctly done but it works.
I added the cmd /K C:\Scripts\PathMod.bat to the target.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
samsung
OS
windows 8 x64
CPU
intel core i7-365qm cpu @ 2.40ghz 2.40ghz
Motherboard
?
Memory
8GB
Graphics Card(s)
?
Hard Drives
1Tb
Antivirus
?
Browser
firefox, chrome

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home Built Desktop By DataTech
OS
Windows 7 Ultimate X64 SP1
CPU
Intel i5-2550K, Differing ~4.4-4.8GHz No built in GPU
Motherboard
ASUS P8Z68-V PRO/GEN3
Memory
16GB G.Skill Sniper 1866MHz @ 2133MHz 2x8GB
Graphics Card(s)
ASUS GTX650TIB-DC2OC-2GD5, (650TI Boost)
Sound Card
Onboard Realtek 5-1
Monitor(s) Displays
Samsung P2570HD
Screen Resolution
1920x1080
Hard Drives
Samsung 840 Pro 256GB SSD for OS, 500GB Seagate Constellation (Enterprise drive) for Data
PSU
Corsair HX650W
Case
Inwin Dragon Rider
Cooling
Hyper 212 EVO w/two Noctua fans, push-pull, @1300 RPM
Keyboard
E-Z Eyes, bright yellow keys with large characters
Mouse
steelseries SENSEI Laser Pro Gaming
Internet Speed
48-51Mbs Mbs down, 11 Mbs up Xfinity Cable
Antivirus
Norton Internet Security 2013
Browser
IE 10, Opera, Pale Moon if needed
Other Info
4 case fans, LG BluRay-RE, ASUS DVD-RW, Mr. Fusion power supply, 1.21 gigawatts.
Back
Top