Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » retrieving input   (RSS)

Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (10/2/09)

In this post : Troubleshooting a VBScript That Uses Systems Management Server 2003 Can I Prompt a User to Determine Which Network Card to Enable or Disable? Working with Domain Admin Privileges and Embedded Passwords How Can I List Available WMI Namespaces?

Hey, Scripting Guy! How Can I Ensure That Users Submit Only Allowed Values for Script Parameters?

I have a script that I wrote for the help desk people. It is actually a pretty cool script because it lets the user of the script type in a WMI class name, and it connects to the remote computer and retrieves all the information from the particular WMI

Hey, Scripting Guy! How Can I Verify Input Received from the Command Line?

I am the script writer at my company, and I have really been enjoying your articles on Windows PowerShell. I have begun the process of converting some of our old VBScripts to Windows PowerShell, and all of my new scripts are written in Windows PowerShell.

Hey, Scripting Guy! How Can I Use Error Handling When a Script Requests User Input?

Hey Scripting Guy! I have a script that requests user input for a computer name before connecting to a remote computer to perform a WMI query. The problem is that when our help desk people use the script, they invariably type the wrong name of the remote

How Can I Repeatedly Prompt a User to Enter a File Name?

Hey, Scripting Guy! I have approximately 100 Excel files (all with names like 9365.xls) in a folder. I’d like to prompt a user for a file name, open the file, retrieve information from a specified cell, then close the file (ideally Excel would never appear

How Can I Clear the Contents of Any File Dropped on My Script Icon?

Hey, Scripting Guy! How can I write a script that will clear the contents of any file that I drag and drop on the script icon? -- SN Hey, SN. Say, you didn’t by any chance misplace a few hundred thousand insects did you? OK; just thought we’d ask. This

How Can I Send Data from One Script to Another?

Hey, Scripting Guy! A while back you showed how we could use the InputBox function to prompt a user to enter a value we could then use in our script. What I’d like to know is, is there any way I can take that value and use it in another script? -- JW

How Can I Prompt a User for Input?

Hey, Scripting Guy! I need my script to prompt users to enter some information, like the name of the file they want to create. How do I do that? -- RW, Williamsport, PA Hey, BN. The simplest - and most foolproof - way to do this is to use an InputBox;

How Can I Use Long File Names as Parameters?

Hey, Scripting Guy! I’m trying to run a command-line tool from a script, but I need to pass it a long file name like C:\Documents and Settings\All Users\Desktop\logfile.txt . No matter how I try to pass that file name, however, my script blows up on me.
 
Page view tracker