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!

Open a .vbs file at end if script

Status
Not open for further replies.

jeditom

IS-IT--Management
Dec 3, 2003
23
0
0
US
How do I get my script to open a .vbs file at the end of the script? (the .vbs file will be a popup box that signifies the script has completed)
 
If this is something that you can run from a command line, then you could use the ASPECT run command to launch it (you may need to tweak the command format to get it to launch correctly).

However, you can display a message in your script using the usermsg command, or display a dialog if you need more than just a simple message.


aspect@aspectscripting.com
 
I run .vbs files from some of my scripts:

run "C:\WINNT\send_email.vbs"

You can also create .vbs files using ProComm

string sOverwrite,sMove,sNew,sCR,sLF

integer szMonth, szDay, szYear, szHour, szMin, szSec
ltimeints $LTIME szYear szMonth szDay szHour szMin szSec


strfmt sOverwrite "Const OverwriteExisting = True"
strfmt sMove "Set objFSO = CreateObject(`"Scripting.FileSystemObject`")"
strfmt sNew "objFSO.CopyFile `"C:\TEST.XLS`", `"I:\IS Shared Files\Test\In\%d%02d%02d\`", OverwriteExisting" szYear szMonth szDay
strdelete sNew 72 2
strfmt sCR "%c" 13 ;string to hold carriage return
strfmt sLF "%c" 10 ;string to hold linefeed

fopen 1 "C:\WINNT\test_move_file.vbs" CREATE TEXT
fputs 1 sOverwrite
fwrite 1 sCR 1
fwrite 1 sLF 1
fputs 1 sMove
fwrite 1 sCR 1
fwrite 1 sLF 1
fputs 1 sNew
fclose 1
pause 1
run "C:\WINNT\target_move_file.vbs"
pause 3
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top