Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails
@echo off setlocal enabledelayedexpansion IF "%~1" EQU "" ( ECHO PLEASE DRAG AND DROP YOUR EMAIL LIST FILE. ECHO IN A TEXT FORMAT ".txt" NOT EXCEL FORMAT. PAUSE EXIT ) IF "%~x1" NEQ ".txt" ( ECHO YOUR LIST FILE MUST BE IN A TEXT FORMAT ".txt". PAUSE EXIT ) SET Output=%~dpn1_Winners%~x1 ECHO Please enter the number of desired winners SET /P WinnersNumber= SET Count=0 FOR /F "usebackq delims=" %%A IN ("%~1") DO SET /a Count+=1 ECHO There are [%Count%] email(s) and [%WinnersNumber%] winners to be. ECHO. FOR /L %%G IN (1,1,%WinnersNumber%) DO ( ECHO Draw Number:%%G PING 127.0.0.1 -n 1 >NUL FOR /L %%A IN (1,1,50) DO ( SET /a Val = !random! %% %Count% + 1 TITLE !Val! PING 127.0.0.1 -n 1 >NUL ) CALL :Draw "%~1" ECHO [!TheWinnerIs!] ECHO %date%,%time%,!TheWinnerIs!>>"%Output%" ECHO. ) PAUSE EXIT :Draw SET /a ValSkip=%Val% - 1 FOR /F "usebackq skip=%ValSkip% delims=" %%A IN ("%~1") DO ( SET TheWinnerIs=%%A exit /B )
|Enhanced For loop vs ForEach Loop||4||42|
|How to run multiple lines in a batch file||4||45|
|NodeJS, Parse-server, express basic tutorial to write and read data from a html page. Where can I find one?||5||42|
|Windows 10 Search (Indexing Options) Modify with PS, CMD or Registry.||5||34|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
14 Experts available now in Live!