Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: Start Command Prompt and automatically execute a few commands

23 Feb 2013   #1

Windows 7 Professional 64bit
 
 
Start Command Prompt and automatically execute a few commands

I am learning a programming language, and I frequently use command prompt to compile source codes, but every time I start command prompt I need to manually cd to the correct directory, and then I like to run cls to keep the window clean. I have looked around, but I'm not sure how to phrase a google search to get the right results >.<, so could anyone tell me how I would start a command prompt, then run the "cd [location]" and "cls" commands automatically?

Thanks,
Tom

My System SpecsSystem Spec
23 Feb 2013   #2

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64 Ubuntu 12.04 LTS Tri-Boot
 
 

I'm not sure that is possible, but Option 2 here might help with the cd/ bit:

Command Prompt
My System SpecsSystem Spec
23 Feb 2013   #3

Windows 7 Professional 64bit
 
 

Its not a bad solution, but it would be nice if I could then create a shortcut from that so I can have it pinned to my taskbar.

Thanks for the suggestion
My System SpecsSystem Spec
.


Reply

 Start Command Prompt and automatically execute a few commands





Thread Tools



Similar help and support threads for2: Start Command Prompt and automatically execute a few commands
Thread Forum
Command prompt not recognizing commands General Discussion
Stuck In start up repair loop command prompt does not accept cmd General Discussion
Command prompt doesnt recognize commands / cant repair windows BSOD Help and Support
Execute windows commands Customization
Solved Running command prompt commands elsewhere... General Discussion
Command prompt link in Start Menu Customization
automatically execute commands when switching to DC Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:22 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

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