DevGuy FileTools

27 Mar 2004 00:38

Download

Bulletin Board

More Windows NT Tools

 

Revision History

See the announcements.


Introduction

The DevGuy FileTools are a set of free command-line utilities for Windows.  The tools are installed via a Windows install program (MSI).

The tools are listed in the "Developer Productivity Tools," "Command-Line Tools," and "Windows Specific Tools" sections here.


License

All content and software located at http://devguy.com/fp/cfgmgmt and subdirectories thereof is (c) DevGuy.com, 1999-2003.  

The software herein may be used for any purpose, modified, and redistributed free of charge.  If you modify source code, I would appreciate it if you sent me a note describing the changes.

THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE DEVGUY FILETOOLS' CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Getting the Source Code

The source code is hosted on SourceForge.  Please refer to the CVS details.

  1. Get the following modules from CVS:
  2. Copy all directories under pctk2/pm to c:\perl\lib
  3. You can run the scripts in FileTools/pl via "perl <script name> <parameters>"

If you want to convert the scripts to executables you will need the Perl DevKit.  Run "perlapp -f <script name>"


Installing Source Code

For your convenience, here are the source code tarballs of the current release which are substantially smaller than the executables:

  • Executables -- FILETOOLS_WIN32.TAR.GZ -- extract to a directory in your Path
  • Perl scripts -- FILETOOLS_PERL.TAR.GZ -- extract to a directory in your Path
  • Perl modules -- FILETOOLS_LIB.TAR.GZ -- extract to c:\perl\site\lib\cfgmgmt with "Use folders names" checked -- substitute c:\perl with the path of your Perl installation
  • Install Perl modules.  Run the following from the command line.  Note that in the most recent versions of Perl (e.g., build 805), only Clone, Authen::SASL, and XML::Simple need to be explicitly installed.

    ppm install Clone Authen-SASL HTML-Lite


Which Version is Installed?

Run dgfiletoolsversion to find out


Environment Variables

When a tool executes a "dg" script, it does so without specifying an extension or path or running "perl" explicitly.  This causes Windows to execute the .EXE version of the script.  When the DEVGUY_USEPERL environment variable is set to 1, scripts are executed via perl -S.  The -S switch means "search the PATH."  This is useful for developing the scripts on Windows.  You should delete this environment variable rather than setting it to 0.


Assistance

Need help?  Post a question to the bulletin board.


Download

Please Note:

The installation programs contained herein require Microsoft Installer 2.0.  The setup programs will install Microsoft Installer 2.0 if it is not present.  If Microsoft Installer 2.0 is not yet installed, Terminal Services must be in Remote administration mode rather than Application server mode.  Before installing anything it is advised that you create an Emergency Repair Disk.  Failure to heed all of this advice can result in a hosed machine that must be reformatted.  In no circumstances shall DevGuy be held liable for any damage to your machine made directly or indirectly by the installation programs

You must be Administrator to install this software.

  • All versions
  • Change the system PATH to include the DevGuy FileTools installation directory and reboot