WALK.EXE Command Line Parameters and Usage (113605)



The information in this article applies to:

  • Microsoft LAN Manager 2.1
  • Microsoft LAN Manager 2.1a
  • Microsoft LAN Manager 2.2

This article was previously published under Q113605

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)

Modification Type:MajorLast Reviewed:9/30/2003
Keywords:KB113605