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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have 2 VBscript files, In File1 I

Status
Not open for further replies.

AnilKumar

Programmer
Dec 5, 2000
26
0
0
IN
I have 2 VBscript files, In File1 I have all functions and want to call then from file 2 ,pls tell me how can I do that.
example:
File1.vbs
call sub1
.
.

File2.vbs
sub1()
msgbox "sub1"
end sub
thx for the help.
Anil.
 
If you are using the WSH, you could just use in File1:
<script language=&quot;vbscript&quot; src=&quot;File2.vbs&quot;>
call sub1
</script>

Maybe it would be a good idea to read up on packaging using
the .wsf file format..?

Hope it helps,
Peter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top