Command Prompt Prob (Win XP)
Hi All, Is there a way to keep the Command prompt active? If I use the Shell command to start the command prompt with arguments then the prompt appears and disappears in the blink of an eye Shell ("cmd.exe /c dir", 1) If I start it without arguments then it stays active. Shell ("cmd.exe", 1)
I need to start a dos app and use various switches.
I've been told that in earlier versions of windows there is a property you can tick to stop the command prompt from closing.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Command Prompt Application Not Holding Command Prompt [VB6]
This is going to be hard to explain, let me try...
I have an application (Command Prompt application, all .BAS/.CLS files, no Forms at all).
This is meant to be run from the command line only.
When the user runs the application [C:AppProgram.exe] I want the command prompt to "hold/wait" until the program is finished running before returning control to the user.
Currently, the user runs the commnad line application and it immediatly returns to the command line (hope I am making sense).
So the sequence of events should be:
- Open command prompt and go to c:App
- Type Program.exe (which takes 5-10 minutes to run)
- HOLD the command line until the application is done
- Return to C:App when finished so the user can do something else
Currently the undesirable sequence of events are:
- Open command prompt and go to c:App
- Type Program.exe (which takes 5-10 minutes to run)
- Returns to C:App when finished so the user can do something else
- 5-10minutes later the application finishes but we have no way of knowing (besides task manager in windows)
How can I make the Command Prompt/Shell WAIT for my program to finish before relinquishing control back to the user?
Thanks,
Command Prompt Application Not Holding Command Prompt [VB6]
This is going to be hard to explain, let me try...
I have an application (Command Prompt application, all .BAS/.CLS files, no Forms at all).
This is meant to be run from the command line only.
When the user runs the application [C:AppProgram.exe] I want the command prompt to "hold/wait" until the program is finished running before returning control to the user.
Currently, the user runs the commnad line application and it immediatly returns to the command line (hope I am making sense).
So the sequence of events should be:
- Open command prompt and go to c:App
- Type Program.exe (which takes 5-10 minutes to run)
- HOLD the command line until the application is done
- Return to C:App when finished so the user can do something else
Currently the undesirable sequence of events are:
- Open command prompt and go to c:App
- Type Program.exe (which takes 5-10 minutes to run)
- Returns to C:App when finished so the user can do something else
- 5-10minutes later the application finishes but we have no way of knowing (besides task manager in windows)
How can I make the Command Prompt/Shell WAIT for my program to finish before relinquishing control back to the user?
Thanks,
Command Prompt Application Not Holding Command Prompt [VB6]
This is going to be hard to explain, let me try...
I have an application (Command Prompt application, all .BAS/.CLS files, no Forms at all).
This is meant to be run from the command line only.
When the user runs the application [C:AppProgram.exe] I want the command prompt to "hold/wait" until the program is finished running before returning control to the user.
Currently, the user runs the commnad line application and it immediatly returns to the command line (hope I am making sense).
So the sequence of events should be:
- Open command prompt and go to c:App
- Type Program.exe (which takes 5-10 minutes to run)
- HOLD the command line until the application is done
- Return to C:App when finished so the user can do something else
Currently the undesirable sequence of events are:
- Open command prompt and go to c:App
- Type Program.exe (which takes 5-10 minutes to run)
- Returns to C:App when finished so the user can do something else
- 5-10minutes later the application finishes but we have no way of knowing (besides task manager in windows)
How can I make the Command Prompt/Shell WAIT for my program to finish before relinquishing control back to the user?
Thanks,
Using A Dos Command Prompt
I am currently making a database in Microsoft Access 2000 and I want to be able to run a MS-DOS Command Prompt with a click of a button. How must I go about doing this?
Command Prompt And Vb
hai friends, hope some one will help me in this topic.
How to make vb and commandprompt talk to each other .
command prompt should be a backend process.
thanks in advance
Vidhyasudha.C.R
Command Prompt
I have a command prompt window open and it has focus and I can send keystrokes to it. Is there anyway I get the results that are returned to populate a text box in my app? (Other than doing a sendkey that will copy all the text to the clipboard and then paste it into the text box.)
Thanks,
Joe
Command Prompt
Is there anyway to write and read from windows command prompt?
Run Command Prompt
is there a code to run command prompt or any program for that matter through visual basic?
thanx VBJFox
Command Prompt / Dos
i hae wi 2k and instead of haing dos it ahs commad prompt - the oln yproblem i have is that when i run ipconfig - it closes straight away - and i only see the widow flash up - is there a way i can stop it from closing???
thanks alot
Command Prompt
is there a way that i can include a command prompt right on a form in my program. like a button or text box right on the form;
Command Prompt Q
I'm making a program that acts as the 'net send' command in command prompt. I already have the shell thingy done, but i have fields in the program that i want plugged in to the shell command
ex:
Shell ("net send text1.Text text2.Text")
text1.Text being the IP,
text2.Text being the Message.
Thank you in advance,
Nariab(Lamer)
I beleive i did not make myself clear. (excuse me) my problem is, the text1.Text and the text2.Text feilds remain the same when sending the message.
Command Prompt
hello
I have been looking through the forum and have been unable to find any coding that might allow me to open up a command prompt and the write on it. I want to do something like open the command prompt have it run a ipconfig and return like the default gateway or the computer name to the user of the program. Any idea's how to open a command prompt?
Thanks!
Command Prompt
I am wondering how I can run the command prompt from visual basic and have it type in text. Example:
c:>
c:> X Ample
---------------------------------------------------------------------------|
Thanks
Command Prompt
Hey all,
Ok here is what i am trying to do. We basicly have a command line call that loads a command prompt windows with lots of data and monitors somthing.
I need to keep this at best part of the applciation. So if I use a MDI window can I laod the prompt as an MDI Child?
I've looked into piping the command prompt but its not an option i want to use it seems very usntable and doesnt work with all command line commands.
Thanks
Command Prompt
How can i open a command prompt run multiple commands and put the output of the command(s) into a text file or something?
Using Command Prompt Through VB?
I need to know how to copy all the text from the command prompt and be able to use it in VB.
For example: I need to Shell out to the sun java compiler
( javac.exe )
that i can do easily... I want to be able to pick up the debugging information that the compiler spits back out and display it in VB. Is this at all possible?????
Plz. Help!
Command Prompt
Does anyone know how I can use DOS commands in VB 6. I want change my dir to C:Program FilesVisio then I want to launch Visio by calling Visio32.exe but when I call Visio32.exe I want to include switch. For example, I want VB 6 to do the following:
C:CD C:Program FilesVisio
C:Visio32 /pt "c:WorkOrderAttachments est.asd, "\CSOC-PS01HP4050 (RM 10D)"
I am trying to print the test.asd file without the print dialog box coming up. THe /pt switch will do this only from the Program FilesVisio directory. I don't know how to do it in VB 6. Can anyone help?
Thanks,
James
VB && Command Prompt
I'm a little stuck and need some help if anyone can provide it. Currently, I have operators who open the MS-DOS prompt window and type in a .bat file followed by a date (this actually kicks off a bcp script which uploads into SQL server). The MS-DOS syntax looks similar to this:
f:UploadUpload1.bat 20020521
I want to write a program in Visual Basic that will kick off this script for the operator. I tried using the Shell command but that didn't seem to work. Any thoughts?
Command Prompt Help
Hello All
How can i the text the show in a command prompt to show in my label
and is their a way to do a command prompt command and not have the prompt popup in the background?
Command Prompt
Ok i have a form with a textbox1 and textbox2 and a command button1 i want to be able to type something into text box 2 then for it to relay what i type into the dosprompt then what the dos prompt will have to say about what i type in for it to relay that back to me into text box 1 can anyone help me with this plz
plz help me i have no clue what i am doing i am very new with vb.
DOS Command Prompt
Hi! there,
I can use Shell or ShellExecute API to luanch the Command Prompt window, but after that how can I send the text (what I mean is DOS command) into the Command Prompt Window.
What I wish to do is juz create a simple interface which make myself easy to send the message to another PC by using the Net Send [Computer Name] [Message Body] to another PC. Hence, i need not to retype those prefix syntax everytime I need to send a message out from my PC.
CD At The Command Prompt (XP)
Hi,
I have two directorys: f:volgplus and f:volgpluscalc.
If I open a command box and type cd f:volgplus I get f:volgplus. Works fine sof far.
But if I type f:volgpluscalc I also get f:volgplus !?!?
Q: How do I get to f:volgpluscalc in a command box?
John
I am using XP.
Edited by - johnminkjan on 10/15/2004 1:02:01 PM
Command Prompt
Hi
I am a user on a network were I am unable to access command prompt, I was wondering if it is possible to write something to bypass this restriction, or all of the restrictions I have?
Really dumb thing to ask I’m sure, but I really don’t know
Command Prompt
I know this question has probably been addressed before, but I can't seem to find an answer.
I want to open a command prompt and do a net send from within a procedure.
It's actually within my error handler, and will net send to my username letting me know that a user had an error. (don't worry there are only about 10 users)
I just can't find out how to start a command prompt. It would also be helpful if the whole thing was hidden from the user.
Thanks
Command Prompt
Hi
I want to know how can I write a program using VB
that can parse command line parameters.
Thanks
Ehsan
Writing To A Command Prompt
Ay Guys and Girls ,
I'm a total n00b to Visual Basic so Help me out ThanX,
K what i need to do is :
Plans :
When a User puts in : 127.0.0.1 to the First Form ( Form1 ) and
Same goes with the 2nd Form..
and when the User Clicks 'Go' it will :
Write to the Command Prompt saying :
blablabla.exe 127.0.0.1 127.0.0.1
and it will execute it
After that :
The Multiline Form willl Read from the Results.txt and Display them in the Multiline Form
--------------? Simple ???
All Help Appreciated,
Thanks,
.c0m
Get Information From Command Prompt
Sorry for my poor English
Please help me get information from command prompt, and please upload a zip of code example cause i'm new to vb6.
For example: when we used the 'chkdsk' command in command prompt, it will check your disk for error and then show the disk information in command prompt. Now i want to get that information and show in my vb6 program.
Thank in advance.
Help With Command Prompt Statement
I have A program for displaying java class files.
I can get the command prompt open, but it closes too quickly.
I think this is where the problem is, but the rest of the code follows
'Part of The Show code
WinExec("cd" & strLocation, 5)
WinExec("java " & strFile, 5)
WinExec("timeout = 15", 5)
'Function that opens command prompt
Private Declare Function WinExec Lib "kernel32" (ByVal lpCmdLine As String, ByVal nCmdShow As Long) As Long
Creating My Own Command Prompt In VB
What I am trying to do is create my own Command prompt.
What im trying to do is get the program to send the parameters to the net file (located C:WINDOWSsystem32
et.exe) and then recieve any information that net.exe tries to send back (for example if i remember correctly "net send..." sends back something like "message has been sent to USER" dont have access to cmd atm so can't just check).
But i would want the information sent back to be able to be displayed in like a text box in my VB program.
Does anyone have any ideas on how this could be done?
I know that i can send the parameters to the program (for example net) using
Code:
shell("*command* *parameters")
But the part that really stumps me id getting any results from that back and being displayed. I guess once i get the results back i could figure out the displaying them but i can't figure out how to get the results back to my program.
Any idea's greatly appreciated
Command Prompt Path..
Is it possible to open the command prompt box at a directory that is passed to it via the shell command???
If so what is the syntax...
TIA
Rick
Output To Dos/Command Prompt
I'd like to make a vb6 program that when it's run from a DOS prompt, can output to that screen. I'd especially like if it can be redirected to a file as well.
Thanks in advance.
Write In Command Prompt
I want to know how you can write in the command prompt from visual basic or a way to call a program from visual
thanks
Emulating Dos/command Prompt
Hi
I am making a proggy that is sort of like the old DOS. *Dont Ask Why*. Well its not really an emulation, it just sends commands to the actual windows emulation of DOS and gets back the output. But I was thinking of what control to use for the main window where you type things in. My obvious first thought was a textbox, but this would allow users to move to different lines and highlight text which is not like the original DOS.
Does anyone know of a control that would be easier to develop a command-line interface like this???
PS. i know i could use C++ or even java to accomplish this much easier but this was meant to be done in VB.
Command Prompt Closing
hmm.. dont know where else to post this, hope this is good:
heres my problem, I want the Command Prompt to remain open after I have executed a dos based exe...
for all you C++ programmers out there, I want the program to stay open even when the app has returned a value to the main() function, however, I didnt program it.
Basically what I am doing is making a C++ editor in Visual Basic and I want to compile it in Borland with the click of a button...
ie:
Code:
Private Sub Command1_Click()
Shell("c:Borlandcc55incc32 c:code.cpp")
end sub
the problem is after it compiles, the window closes and I want to be able to see what bugs I have...
lol, I realize this may sound like a C++ problem, but it is really neither C++ nor VB, just wanna know how to keep the **** window from closing
thanx.
Command Prompt Defaults
Anyone know how to programmatically change the command prompt defaults? I'm writing a setup program for a software solution and this would is vital. I've been looking all over for registry keys or something, but can't seem to find where these settings are stored.
win2000
Thanks
Command Prompt Data Into VB?
I know this question has been asked before, but I was wondering if there are alternative methods of getting the info (for example from something like 'Shell("ping IP")') from the command prompt into the VB application. The answer in the other post was to create a batch file that would log it, but I was wondering if there was any way of getting the data directly into the app.
Command Prompt Question
Hey I was wondering if someone could tell me the best way to execute dos commands in an xp environment. I also want to run an executable like rar.exe from my program but keep all the windows it they would pop up hidden.
Combining VB App With DOS Command Prompt
I have a VB app that is used for our Shipping Department to enter in information that will then be imported into a label using barcode. I am using a label program called Label Magic, and it allows for a command line to open the label, import the data, print it, and then close. I just don't know how to combine the two.
Any ideas? Thanks.
Command Prompt In Text Box
I have seen this question posted many times before, and have recently had a call for the same.
So I created a solution. Now I have liked it so much I thought I would...
A. Share
B. Ask for user suggestions
Please feel free to comment. as well if anyone has a more effecient way of handling the console I would love the assistance.
I do not know if this is the appropriate posting for this, so my apologies if anyone sees it as such.
Getting The Command Prompt Messages
Is it possible to retrieve the messages that a commandline program leaves. Such as java. I want to retrieve the error messages it leaves in the prompt. How do I do it with VB
seidren.
Get Path Of Command Prompt EXE (cmd.exe)
Is there an alternative to Environ("ComSpec") to return the full path to the command prompt program?
I'm making basically a GUI to some netstat and other commands and want it to work on all Windows versions (at least up to XP).
Get Text From Command Prompt
Does anyone know a way to send text to a command prompt program (like cmd.exe) and receive the results back after each input. Its like adding code to a running window and wanting the results.
Thanks
How To Make My EXE A Command Prompt
basically, what i want, is control over the command prompt through my program. i want to be able to type "@echo hello" into my program, send it off to command prompt, and then i want my program to return me the output of that, which would be "hello"
how can this be done?
|