Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Loading Library at Run time (.vbs file)

This is a discussion on Loading Library at Run time (.vbs file) within the VB.NET forums, part of the Software Development category; Hi, I want to laod .vbs file using script. For e.g my test is open, i have abc.vbs file that is not attached till now. so i want to make ...

Go Back   Geeks Talk > Software Development > VB.NET
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

VB.NET Visualbasic.NET

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-01-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,016
Thanks: 0
Thanked 91 Times in 72 Posts
psuresh1982 will become famous soon enough
Loading Library at Run time (.vbs file)

Hi,
I want to laod .vbs file using script.

For e.g my test is open, i have abc.vbs file that is not attached till now. so i want to make general function which will load that .vbs file into Test setting -> Resources -> loading that .vbs file from particular path


[This question was asked by Jitesh Sojitra....]
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-01-2007
Expert Member
 
Join Date: Sep 2005
Posts: 110
Thanks: 8
Thanked 28 Times in 15 Posts
suji is on a distinguished road
Re: Loading Library at Run time (.vbs file)

Quote:
Originally Posted by psuresh1982 View Post
Hi,
I want to laod .vbs file using script.

For e.g my test is open, i have abc.vbs file that is not attached till now. so i want to make general function which will load that .vbs file into Test setting -> Resources -> loading that .vbs file from particular path


[This question was asked by Jitesh Sojitra....]
here is the sample code ...

dim index as integer
index = Shell(path, AppWinStyle.Normal, True)

Dim ShellProcess as new Process

Try
ShellProcess.StartInfo.FileName = path
ShellProcess.StartInfo.UseShellExecute = True
ShellProcess.Start()
ShellProcess.WaitForExit()
Catch....
Finally
ShellProcess.Dispose()
End Try

Let me know if this helps...

Thanks,
Suji
Reply With Quote
  #3 (permalink)  
Old 02-01-2007
Expert Member
 
Join Date: Sep 2005
Posts: 110
Thanks: 8
Thanked 28 Times in 15 Posts
suji is on a distinguished road
Re: Loading Library at Run time (.vbs file)

another way of doing in old vb way if you don't want to use process object from vb.net ...

dim WShShell, RetCode
Set WShShell = Server.CreateObject("WScript.Shell")
RetCode = WShShell.Run("C:\TEST.vbs",1, True)
response.write RetCode
set WShShell = nothing
Reply With Quote
Reply

  Geeks Talk > Software Development > VB.NET

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
User defined function in QTP library JobHelper QTP 8 09-23-2009 06:43 AM
Loading a ListBox from a Recordset (in C++) ultranet C and C++ 1 12-29-2006 08:58 AM
Microsoft CRM : Display a SharePoint document library in a Microsoft Dynamics CRM 3.0 form Jim.Anderson Microsoft CRM 0 09-27-2006 07:39 AM
How do you Implement Class Library Object GeekAdmin VB.NET 0 05-28-2006 11:14 AM
Explain about .NET Framework Class Library GeekAdmin VB.NET 0 05-17-2006 11:47 PM


All times are GMT -4. The time now is 03:47 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved