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

Get User Input as a date but not string in batch script

Status
Not open for further replies.

veenak2011

Programmer
Feb 8, 2012
1
US
Hi,
I need to get the Input variable in batch script which will be the date in format mm/dd/yyyy. If the user enters string like ex: test, it shouldn't accept the string or any other data except date in batch script.

Please any suggestions
 
When you refer to batch script are you referring to batch file (.BAT or .CMD file). If that the case, the built-in batch language provide this type of functionality. Try using vbscript or powershell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top