General discussion

  • Creator
    Topic
  • #2093261

    Replace Batch files with?

    Locked

    by ediboss ·

    I am running a server with Windows NT 4.0.

    I need to write some simple batch files to copy, clear, and rename files (basic file administration). I am familiar with DOS batch file creation and have found many limitations. What language can I use to replace this function – Perl, windows scripting??

All Comments

  • Author
    Replies
    • #3869143

      Replace Batch files with?

      by bhunt ·

      In reply to Replace Batch files with?

      Well, you could go with one of the Windows Scripting Hosts tools, but I’d recommend Kix.
      I believe Kix comes with the NT Resource Kit, or it can be freely downloaded off the internet. It is much nicer and more structured than dos batch files, although that is what we still use here, but not for much longer.

    • #3869119

      Replace Batch files with?

      by glen_mcleod ·

      In reply to Replace Batch files with?

      It depends on your programming ability, if you’re familiar with VB, java or Perl(and a couple of others, I can’t remember which), you can use the Windows Scripting Host to do all of that with the FileSystemObjects package. I can’t get into detail here, but you can find all the information and examples you need on MSDN.

      Glen

      • #3882519

        Replace Batch files with?

        by glen_mcleod ·

        In reply to Replace Batch files with?

        Clarification:

        “VB, java or Perl(and a couple of others…”

        All of these languages can be used with the WSH, VBScript and JSctipt natively, and with a minor add-in for the others. Check Microsoft’s web site.

        Glen

      • #3848595

        Replace Batch files with?

        by ediboss ·

        In reply to Replace Batch files with?

        Poster rated this answer

    • #3848593

      Replace Batch files with?

      by ediboss ·

      In reply to Replace Batch files with?

      This question was closed by the author

Viewing 2 reply threads