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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

obtaining a user prompt

Status
Not open for further replies.

timi

Technical User
Nov 10, 2001
35
HU
hi I am trying to write a simple program to create a directory, move to a differnt folder and copy files of that folder to the one created

In one part there are 2 many files of different dates

what I want to do is list the contents which is ok then prompt the user for a range of files i.e. 2000-0726*
then the script will take this input and copy all the file begining with 2000-0726

The problem is I am stuck on geting a prompt, reading it in and using it

can anyone help

Thanks in advance

Timi
 
You can use the sdlginput command to display a dialog requesting the user to enter the necessary information. Their response will be saved in the string referenced in the sdlginput command, and can then be used in any additional commands in your script.


aspect@aspectscripting.com
 
Hi thank you for this it has pointed me in the right direction

you do not have a quick example do you so i can play with it

thanks in advance

timi
 
If you look in the ASPECT help file discussion of the sdlginput command, there is a sample script that prompts the user to enter a string of text then sends it the remote system using the transmit command.


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top