Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing Kornshell Script from Visual Basic

Status
Not open for further replies.

jessicabailey

Programmer
Jul 24, 2003
14
US
Hi everyone!

I hope someone out there has some ideas and may be able to help me...I'm a newbie trying to execute a Kornshell script from a visual basic app that I have written. Has anyone been able to successfully do this?

What I'm trying to do:

on a shared network drive I have a script Kornshell.ksh
I need to access and run this script from user systems throughout the organization, most of whom do not have the KSH.EXE.

In my VB app I tried using the Shell command to open the KSH.EXE (which is stored on the shared network drive) and then pass the script name and location to the KSH.EXE. I have not been able to get this to work.

Does anyone have any ideas as to how to get this to work?

Thanks,
Jessica
 
You might need to dig through the Kornshell documentation and/or help files for the amswer to this. It could be, for example, that KSH.EXE requires various other files and/or registry entries, only works with files located in a specific folder (probably defined by a registry entry) or in its own folder. Thus, you may need to add the appropriate registry entry to the user's PCs, or even consider dynamically moving the files to where the work is to be done then back again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top