Login | |
|
 |
Re: How to Play beep sound in VBScript - 9/7/2004 5:14:22 AM
|
|
 |
|
| |
mbouchard
Posts: 1814
Score: 12
Joined: 5/15/2003
From: USA
Status: offline
|
I do not think that this is possible to do in Vbs. You should be able to do it from the cmd prompt inside a script.
|
|
| |
|
|
|
 |
Re: How to Play beep sound in VBScript - 12/27/2004 11:23:37 PM
|
|
 |
|
| |
mbouchard
Posts: 1814
Score: 12
Joined: 5/15/2003
From: USA
Status: offline
|
quote: Originally posted by drbelden The beep is chr(007). You can perform this operation with the following code:
Thanks drbelden, didn't know what chr it was, just copied it from an old bat file.
|
|
| |
|
|
|
 |
Re: How to Play beep sound in VBScript - 3/25/2005 5:19:23 AM
|
|
 |
|
| |
kirrilian
Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
if you use Option Explicit you have to declare every single variable youre going to use the script.
|
|
| |
|
|
|
 |
Re: How to Play beep sound in VBScript - 3/25/2005 9:23:21 AM
|
|
 |
|
| |
kirrilian
Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
there are a couple of ways, look at the file system object on how to read/write/open files or you can just redirect your output from the command line. eg. cscript script.vbs > outputfile.txt
|
|
| |
|
|
|
 |
Re: How to Play beep sound in VBScript - 3/28/2005 6:32:37 AM
|
|
 |
|
| |
kirrilian
Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
then you would need to use filesystemobject to open/read/write to files http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/sgworkingwithfiles.asp quote: Originally posted by pringy mmm... still not quite sure how that works.. alright for example... recording the time the "action" was executed.. chkTime = Now() ActionA how would you record that "ActionA" with the Now() time in a txt file? the script would be running continuously... looping.. until i stop it.. hence, i need the output to be recorded instantly and continuously, in one single log file, as various actions are triggered. Thanks for your help =)
|
|
| |
|
|
|
|
|