HI ,
I am not using Xp_cmdshell
i am runnbing batch file from command prompt
My batch file name : run .bat
running from cmd eg : run.bat,@date,@file name
i am getting output to file ..
but if the user passes wrong date in @date parameter at command prompt
the it should echo the message "enter the proper date"