Command Line - PowerCram Blog - Page 5

Command Line SMTP Mailer for Batch Jobs

Bmail is a free but lean command line SMTP mail sender. Don’t get fooled into playing $$$ for huge executables. Bmail allows the user to automate the sending of email messages containing log files, data downloads or error messages on Win32 based computers. Together with the freeware utility mpack, you can also send MIME encoded attachments. Download and […]

Schedule Windows reboot (restart) from command line with schtasks

Schedule one-time reboot: schtasks /create /tn “Reboot” /tr “shutdown /r /t 1” /sc once /st 01:00:00 /sd 08/18/2009 /ru “System” Create scheduled task to run twice daily: schtasks /create /tn “TTF” /tr “C:TempTttf.bat” /sc daily /st 06:00:00 /sd 08/25/2009 /ri 720 /du 720 /ru “System” Create scheduled task to run every weekday, M-F: schtasks /create /tn “Reboot” /tr […]

Windows Command Line Tricks

Here are a few Windows command line tricks that might make your life easier. Save A List of Files to a Text File by Extension dir *.ext /s /b > files.txt This command line will create a file called files.txt. When you open this file, there will be a complete list of all the files in that directory […]