I was wondering if it was possible for me to write a simple program that either lets you use command prompt with visual basic (i.e. press a button and it does a command in CMD) if it can't be done in VB is there any other programming languages that allow me to do this. Thanks.

Quite possible by using ShellExecute with lpFile="cmd.exe" and lpParameters="/c <your command here>" (can be also "/k", just read the cmd.exe help).

shell "cmd.exe /c"

will get you to the comamnd prompt. Shellexecute will give you more options and handling and return values, but if you just need the prompt, there you go.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.