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!

thread329-1481428 How do I suppr

Status
Not open for further replies.

papapoon

Technical User
Jan 17, 2012
41
CA
thread329-1481428

How do I suppress the pop-up windows telling me the time?

I need to run this on a schedule and don't want the popups to appear for me to click ok
 
Comment out the lines with Wscript.echo in them; to do so place a single apostrophe ' or the keyword rem in front of the statement.

Change the first line to look like one of the following lines.
Code:
WScript.Echo objSubFolder.DateLastModified
[COLOR=green]'WScript.Echo objSubFolder.DateLastModified
rem WScript.Echo objSubFolder.DateLastModified[/color]
 
I tried that but my script wont work anymore...
 
commenting out "wscript.echo" lines would not affect your script in any way, other than removing the echoes (pop-up windows in this case). I recommend posting your code
 
papapoon said:
I tried that but my script wont work anymore...

What testing have you done? What exactly do you mean it won't work anymore?
The script did nothing?
You got an error message?
Blue screen of death?
Knocked out power to 1/2 of India?
Plague of locusts?

If you are indeed still having problems, I agree with guitarzan, please post your code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top