Computing.Net > Forums > Programming > HOW CAN I RUN UNIX COMMANDS in VB6?

HOW CAN I RUN UNIX COMMANDS in VB6?

Reply to Message Icon

Original Message
Name: puneetbedi
Date: April 30, 2006 at 01:27:54 Pacific
Subject: HOW CAN I RUN UNIX COMMANDS in VB6?
OS: WIN xp
CPU/Ram: PIII & 128
Model/Manufacturer: INTEL
Comment:

HOW CAN I RUN UNIX COMMANDS in VB6?
i have started TELNET using APPACTIVATE
and Shell function
how can i login into the telnet using vb6 ?

call me on Puneet 9821308954
email me puneetpalbedi@gmail.com



Report Offensive Message For Removal


Response Number 1
Name: StuartS
Date: April 30, 2006 at 10:07:02 Pacific
Subject: HOW CAN I RUN UNIX COMMANDS in VB6?
Reply: (edit)

You cant run Unix commands under VB6. VB6 runs under Windows and knows nothing of Unix.

However, you can still run an Telenet applcation with VB6. Use the SendKeys function to send commands to the Telnet application once you have Telnet up and running. The commands you can send are determined by the host you wish to log onto.

for example, a lot of Telnet hosts will accept the string "login;username;password" as a single string and log you in with that.

Stuart


Report Offensive Follow Up For Removal

Response Number 2
Name: SamRock
Date: May 29, 2006 at 03:00:57 Pacific
Subject: HOW CAN I RUN UNIX COMMANDS in VB6?
Reply: (edit)

Hi,

I m sorry I disagree with StuartS!!

U can connect to UNIX from VB6 and run all commands too!!

The answer is Winsock. Its complicated to discuss here. You can check the below URL for loads of Winsock, Telnet examples:

http://www.vbip.com/winsock/index.asp

Samuel Roshan


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: HOW CAN I RUN UNIX COMMANDS in VB6?

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge