WALK.EXE Command Line Parameters and Usage

ID: Q113605


The information in this article applies to:
  • Microsoft LAN Manager, versions 2.1, 2.1a, 2.2


SUMMARY

WALK.EXE is part of the utilities in the LAN Manager Resource Kit. This article provides information on how to use it.


MORE INFORMATION

Walk traverses a specified directory tree and executes a command with the appropriate subdirectory or file substituted for each %s in the command. It does NOT change directory to each node as they are processed.

Usage


   walk [/p] [/f] [/d] path [command] 

Switches


   /p    print out the name of the file/directory as it is processed
   /f    apply the command to files only
   /d    apply the command to directories only
   /h    also process hidden directories and files 
If the command is an internal OS/2 command, use cmd /c command. For example:

   walk /d . cmd /c dir %s 

Examples


    walk /d . ls %s
    walk /f .
    walk /d .
    walk /d c:\bin del %s 
The command:

   WALK.EXE /d C:\ NET ACCESS %s > OUTPUT.TXT 
when placed in a batchfile, should look like:

   WALK.EXE /d C:\ NET ACCESS %%s > OUTPUT.TXT 
(note the double % symbol)

Additional query words: 2.10 2.1 2.10a 2.1a 2.20 2.2

Keywords :
Version : :2.1,2.1a,2.2
Platform :
Issue type :


Last Reviewed: November 10, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.