Hell yeah... I thought SHIFT had gone out of use with Win3.1... Glenn Sullivan, MCSE+I MCDBA David Clark Company Inc. -----Original Message----- From: Costanzo, Ray [mailto:rcostanzo@xxxxxxxxxxx] Sent: Thursday, September 12, 2002 8:44 AM To: 'windows2000@xxxxxxxxxxxxx' Subject: [windows2000] Re: Multiple arguments in a batch Shift! Nice! I never knew about that! Thanks a lot Kivi, Ray at work with first party software, my software, and Helios Textpad! > -----Original Message----- > From: Jeremiah Kivi Shapiro [mailto:kivi_s@xxxxxxxxx] > > > > "Costanzo, Ray" <rcostanzo@xxxxxxxxxxx> wrote: > > Is there a way to grab all arguments beyond #3 > > and stick them in one variable? > > SHIFT, and a loop, would do it. Try this: > > Set Arg1=%1 > Set User=%2 > Set Pass=%3 > SHIFT & SHIFT & SHIFT > Set Dates= > :Loop > IF "%1" == "" GOTO :Loopend > Set Dates=%Dates% %1 > SHIFT > GOTO :Loop > :Loopend > ECHO Done. Dates=%Dates% > > Yours, > Kivi > with some third-party software ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** ================================== To Unsubscribe, set digest or vacation mode or view archives use the below link. http://thethin.net/win2000list.cfm ================================== To Unsubscribe, set digest or vacation mode or view archives use the below link. http://thethin.net/win2000list.cfm