Showing tag results for scripting techniques

Oct 12, 2004
Post comments count0
Post likes count0

How Can I Count the Number of Lines in a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I count the number of lines in a text file?-- MS Hey, MS. It’s easy to tell that Microsoft’s scripting technologies weren’t written by people who do system administration for a living. Our scripting technologies are jam-packed with features and capabilities, yet we always seem to missing the things that people really ...

Scripting Guy!scripting techniquesVBScript
Oct 11, 2004
Post comments count0
Post likes count0

How Can I Automatically Run a Script Any Time a File is Added to a Folder?

ScriptingGuy1

Hey, Scripting Guy! Is it possible to have a script automatically run any time a file is added to a specific folder?-- MB Hey, WM. Yes, this is possible, thanks to the magic of WMI events, which allow you to write a script to monitor for something of interest (like a file being added to a folder) and then take some action any time an event like ...

Scripting Guy!scripting techniquesVBScript
Oct 5, 2004
Post comments count0
Post likes count0

How Can I Pause a Script and Then Resume It When a User Presses a Key on the Keyboard?

ScriptingGuy1

Hey, Scripting Guy! I would like to be able to pause my script, then have it resume as soon as the user presses any key on the keyboard. How do I do that?-- AL Hey, AL. Boy, this question takes us back: “Press any key to continue,” along with “Abort, Retry, or Fail,” has to be one of the most famous phrases in computing history. Excuse us for a ...

Scripting Guy!scripting techniquesVBScript
Oct 4, 2004
Post comments count0
Post likes count0

How Can I Print Text Files Using a Script?

ScriptingGuy1

Hey, Scripting Guy! I have a bunch of text files in a folder. Is there a way to print those files using a script? I know I can use Microsoft Word to print the files from a script, but I don’t have Microsoft Word installed on that computer.-- MA Hey, MA. Don’t tell anyone from Microsoft we said this, but that’s OK; you don’t need Microsoft Word j...

Scripting Guy!scripting techniquesVBScript
Sep 23, 2004
Post comments count0
Post likes count0

How Can I Display Multiple Lines of Output in a Web Page?

ScriptingGuy1

Hey, Scripting Guy! How do I get multiple lines of output in a Web page using the Document.Body.InnerHTML property? I can only get one line of output on my page.-- CM Hey, CM. Sounds like you’re creating an instance of Internet Explorer and trying to display script output in it. And we’re willing to bet you’re using a script similar to this: In th...

Scripting Guy!scripting techniquesVBScript