Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you get CMD to come up with vb6?
#1
ok i went to access, made a button which opens vb6. what do i do in vb6 to get cmd? i need this for school as they have blocked .bat and .exe files.

Thanks
Reply
#2
I don't really know VB6 but I used google and found this which might help you..
Code:
Dim sYourCommand as String
sYourCommand = "\networkfolder\project\testfile.txt"
Shell "cmd /c " & sYourCommand

In this example, you would create a textfile which included a command that you want to run on the CMD.
sYourCommand = "\LOCATION\yourcommand.txt"
Next line of code would then open the cmd and run the command..

Alternatively you could just do
Code:
Shell("cmd.exe")

I'm not entirely sure this correct as I don't code in VB6 but I hope this helps.
Reply
#3
(05-16-2010, 05:51 AM)Dubstep Wrote: Alternatively you could just do
Code:
Shell("cmd.exe")
Or if this doesn't work:
Code:
Shell "C:\Windows\system32\cmd.exe"
My software company: Porosis Software
Games: Terrantula
Apps: Mathanasis, ColorGrabber
Reply
#4
Shell "C:\Windows\system32\cmd.exe"


I think that is it Tongue Not positive though.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] - Convert Excel formula to VB6 Code Carb0n F1ber 15 6,807 05-18-2015, 11:46 PM
Last Post: longwest
  vb6.0 SSTab control disappeared DanB 0 1,296 12-29-2012, 10:24 AM
Last Post: DanB
  [HELP][VB6] Comparing md5/file size? Cloud203 5 2,418 02-04-2012, 02:47 PM
Last Post: Denny Crane
  VB6 | PickYourShow0.1 BETA BreShiE 29 7,373 01-11-2012, 02:44 AM
Last Post: BreShiE
  [VB6] Shopping List BreShiE 3 1,548 12-30-2011, 07:51 PM
Last Post: BreShiE

Forum Jump:


Users browsing this thread: 2 Guest(s)