Jump to content

stevehubbard

Member
  • Posts

    3
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

About stevehubbard

stevehubbard's Achievements

0

Reputation

  1. ok ignore that, im on xp and i cant work out how to get the date command to show me todays Day so i can parse it. @For /F "tokens=2,3,4 delims=/ " %%A in ('Date /t') do @( set Day=%%a set month=%%b Set year=%%C ) if %DAY%==Mon goto :mon if %DAY%==Tue goto :tue if %DAY%==Wed goto :wed if %DAY%==Thu goto :thu if %DAY%==Fri goto :fri if %DAY%==Sat goto :sat if %DAY%==Sun goto :sun Now i know the date /t command dont show the day (mon) but doing Echo.|Command /C Date does show at day(mon) how can i parse that command? Sorry for being a noob I am learning, takes some time
  2. my output on date is Current date is Mon 11/01/2010 how can i parse mon in dos??
  3. Hi all, anyone help me on this i want on certain days to run diffrent .bat files I have this but its not working... Im sorry im new to creating batch files anyone help me??? @ECHO OFF :LOOP ECHO Waiting for 5 minutes... PING -n 300 127.0.0.1>nul IF %DATE:~0,3%==Mon CALL monbreakfast-rename.bat IF %DATE:~0,3%==Tue CALL tuesbreakfast-rename.bat IF %DATE:~0,3%==Wed CALL wedbreakfast-rename.bat IF %DATE:~0,3%==Thu CALL thursbreakfast-rename.bat IF %DATE:~0,3%==Fri CALL fribreakfast-rename.bat IF %DATE:~0,3%==Sat CALL satbreakfast-rename.bat IF %DATE:~0,3%==Sun CALL sunbreakfast-rename.bat
×
×
  • Create New...