August, 2007 Archive

How can I rename a file with todays date?

You can use this simple batch file to rename a file and append today’s date: set Day=%Date:~0,2% set Mth=%Date:~3,2% set Yr=%Date:~6,4% rename c:test.log test_%Day%-%Mth%-%Yr%.log

I changed the IP address of a server running the SMTP service, but I can’t send mail to it locally. What’s the problem?

t’s common to install the SMTP service on servers that require limited mail-sending capabilities–for example, on a Microsoft SharePoint server. I recently had a problem in which the box got a new IP address, and at that point the services that used the SMTP service could no longer send email. The problem was that the […]