3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to make a custom CMD window have custom commands (or commands at all)

Hey guys, I made a simple cmd program:

@echo off
color 0a
title %CD%
echo DBAC(R) Windows DOS
echo (C)Copyright DBAC 2009+
echo.
:CMD
set /p cmd=%CD%^>
%cmd%
goto CMD

I just have a question: How do I give it commands? Where do I tell it where to find them? If anybody knows, comment please!

Thank you!

EDIT: Resolved.

@echo off
color 0a
title %CD%
echo DBAC(R) Windows DOS
echo (C)Copyright DBAC 2009+
echo.
:CMD
set cmd=
set /p cmd=%CD%^>
if not defined cmd goto CMD
call "%CD%"\Commands\%cmd%
echo %cmd%>"%CD%\Commands_Log\%cmd%
goto CMD

6 answers
sort by: active | newest | oldest
Jan 23, 2010. 3:57 PMlemonie says:
You should be able to award yourself "Best answer".

L
Jan 24, 2010. 3:16 AMlemonie says:
No I mean it. There should be a blue button for you to click by your original comment. Go get it.

L
Jan 24, 2010. 1:48 PMlemonie says:
Yea! there you go.

L

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!