 |
nokmaster Level: Trainee
 Registered: 01-08-2005 Posts: 2
|
Re: about cmd.exe
thanks...
sir, take a look with my code
cmdGenerate.Enabled = False
txtSerialNumber.Text = ""
txtDummy.Visible = False
txtExit.Visible = False
CShell = Environ("COMSPEC")
O = Shell("CShell -u >> C:\data.txt", vbNormalFocus)
|
is this correct? i got an error...
i want to capture the dummy.exe output into data.txt
Thanks...
|
|
03-08-2005 at 08:50 AM |
|
|
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1617
|
Re: about cmd.exe
well... I believe the "CShell" needs to be outside the quotes... the way you have it, it'll execute "CShell"
What that will do, once fixed is go to a command prompt, and possibly load a second command prompt (not sure though).
Regardless though, you haven't run the program that you're wanting to intercept...
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|
|
03-08-2005 at 08:18 PM |
|
|
mozzy Level: Graduate
 Registered: 02-08-2005 Posts: 11
|
Re: about cmd.exe
Hi everybody,
I'm new to this forum. I was searching for somehting on the internet and came across this site and it looks pretty good.
I think this is what you are looking for,
Shell "command.com /c dir *.* -u >> dir.txt", vbHide
Writes the dir listing of the specified directory and then exits the command prompt.
|
|
05-08-2005 at 09:25 AM |
|
|
|
|
 |
 |