Wednesday, June 22, 2011

First Useful Batch File

tryed my hand at writing a batch file to solve a problem at work with the timeclock timing out as it tries to connect to the server. here's my code

@ECHO OFF
REM - Set Working Directory

chdir C:\Users\*\Desktop\

REM - CHECK AND CREATE LOGFILE (PLAIN TEXT) IF NOT FOUND
ECHO. >>LOGFILE.TXT
ECHO. >>LOGFILE.TXT
ECHO DNS LOGFILE ENTRY>>LOGFILE.TXT

REM - APPEND AND OUTPUT CURRENT DATE AND TIME TO LOGFILE

ECHO. >>LOGFILE.TXT
ECHO %DATE% >>LOGFILE.TXT
ECHO %TIME% >>LOGFILE.TXT
ECHO.>>LOGFILE.TXT
ECHO BEFORE >>LOGFILE.TXT

REM - GATHER CURRENT DNS RESOLVER CACHE AND APPEND IP'S TO LOGFILE
ECHO. >>LOGFILE.TXT
ipconfig /displaydns >>LOGFILE.TXT
ECHO. >>LOGFILE.TXT

REM - FLUSH THE DNS RESOLVER CACHE

ipconfig /flushdns
CLS

REM - APPEND AND OUTPUT AFTER

ECHO AFTER >>LOGFILE.TXT
ECHO. >>LOGFILE.TXT
ECHO Please Activate Time Clock and
ECHO.
Pause

REM - GATHER NEW DNS RESOLVER CACHE AND APPEND NEW IP'S TO LOGFILE

ECHO. >>LOGFILE.TXT
ipconfig /displaydns >>LOGFILE.TXT
ECHO. >>LOGFILE.TXT

REM - EXIT AND SAVE LOGFILE

EXIT
REM - Created by Wa Sing

Monday, August 16, 2010

Open Ambitions Inactive

Open Ambitions is now inactive and the source was released in source forge for anyone to develop there is also a text file you may also wish to read. this was a fun experiment that i learned allot from but am unable to actively pursue. thats for all those who followed. Wa Sing

Thursday, June 24, 2010

Try Ruby

This is a really cool hands on tutorial for the ruby language and it really makes me want to switch to the ruby language so i have decided that after i release an alpha version of open ambitions in c++ i will release a ruby version afterward for comparison.

for a link to this really cool site

http://tryruby.org/

Project Admin,
             Wa Sing