Tools Home

Command-Line Tools

20 Feb 2003 19:16

PCTK Installation 

FileTools Installation

Usage Examples

  • As you modify files you can back them up with 
    dgbackup c:\0901 source/c/util source/xml
  • You can which files you have changed with dgstat
  • You can see your changes with dgdiff
  • You can commit your changes (one file at a time) with dgcommit
  • You can import files with dgimport
  • You can checkout files more easily with dgco

CVS-Related Tools [PCTK]

dgchangelog Generate a CVS change log.  Outputs comments made between two revision tags.  Processes the current directory and subdirectories.
dgco / dgcheckout Check out files via CVS - uses current directory so you don't have to specify a full CVS path.
dgcommit Commits each file individually and displays a winzip window showing your changes so you can refer to your changes while typing in the check-in comment (recursively or use -l option).
dgdeldir Removes directories with a particular name (including its sub-directories).  e.g., providing the argument "CVS" will delete all the CVS directories in the current directory and in subdirectories.
dgdiff Shows differences in changed files with windiff.  Provide the names of the files you want to diff, or pass in nothing to see differences in all modified files (recursively or use -l option).
dgfindlocks Find files that are locked in CVS
dgfixcvs Changes the CVSROOT of a CVS sandbox
dgimport CVS import helper - imports all files in the current directory and subdirectories.  Provide the CVS directory where the files should be imported.
dgloginfo Posts CVS commit notifications to a newsgroup
dgloginfoemail Emails CVS commit notifications
dgloginfohtml Posts CVS commit notifications to a newsgroup in HTML format
dgloginfohtmlemail Emails CVS commit notifications in HTML format
dgnotify Emails "watch" notifications
dgplink Helper for using CVS via SSH client
dgstat Displays the files that have been modified or are new and have not been checked in (recursively or use -l option).

Build Robot-Related Tools [PCTK]

dgbuild Build robot
dggenericoutputparser Generic build command filter
dgjarhelper Helper command for creating jar files
dgjavadoc Helper command for generating javadoc documentation
dgmakejar Helper command for creating jar files
dgmakewrapper Helper command for executing makefiles
dgpackage Generic XML-based file copy mechanism for projects
dgversion Outputs the version information of the Programmers' Canvas Toolkit

Win32 Development-Related Tools [PCTK]

dgdbmon Outputs text sent by Win32 programs to the debug console, e.g., via ATLTRACE or TRACE0
dgmktlb Compiles all IDL files into TLB files

Developer Productivity Tools [PCTK, FileTools]

dgbackup Back up source files to ZIP archive -- does not add EXEs, DLLs, and other files that you would not normally check in
dgbackupall Add all files and sub-directories to a ZIP archive
dggzbackupall Add all files and sub-directories to a gzipped tar file (.tar.gz).  Requires CYGWIN.
dgcat Similar to the UNIX cat command that concatenates files, but it can navigate to subdirectories
dgdelzip For each file in the archive, it deletes the file or, optionally, makes it writable.  Generally used before unzipping an archive if you check-out files as "read-only."
dgdeldir Removes directories with a particular name (including its sub-directories).  e.g., providing the argument "CVS" will delete all the CVS directories in the current directory and in subdirectories.
dgmakepath Creates a directories and any missing parent directories in the specified path
dgprune Deletes a directory and its sub-directories
dgreg Replaces the text "%DLL" in a .REG file with the full path of a DLL and calls regsvr32
dgregall Registers COM DLLs and TLBs recursively
dgreglib Registers a COM type library (TLB)
dgsleep Waits for a specified number of seconds
dgzip Freeware zip program

File-Related Tools [FileTools]

dgdaterename Renames a file according to date relative to today's date
dgextractbytes Extracts bytes from a file
dgextractlines Extracts lines from a file
dgfindctl Looks for control characters in a file
dgfiletoolsversion Outputs the version information of DevGuy Filetools
dggrep Grep (search files for specified regular expression) -- supports directory traversal
dghead Outputs the beginning N files of a file
dghexdump Outputs the hexadecimal bytes of each character in a file
dglc Counts the number of lines in a file
dgpreplace Replaces text in a group of files - optionally in subdirectories
dgremctrl Replaces control characters in a file with a specified character
dgreplace Like dgpreplace, but only touches files that actually have the text to replace and provides a 'recursive' option
dgrunit Runs a command, redirecting STDOUT and, optionally, STDERR to files.
dgtail Outputs the last N lies of a file
dgunzip Freeware unzip program
dgunzipcat Concatenates all files in a ZIP archive
dgunix2win Converts UNIX linefeeds to Windows linefeeds
dgwin2unix Converts Windows linefeeds to Unix linefeeds
showlog See here

Windows Specific Tools [PCTK, FileTools]

dgshutdown Shut down or reboot the computer
dgkill Terminate a process