none
Issue the command to locate all files and directories that begin with wi (i.e wild card) under the Windows directory (from C: drive)

    Question

  • Dumb question.  Trying to put together a batch file for a skills exam tomorrow and I cannot figure out the syntax of this.  Please help.  (With limited mockery)...

    Monday, November 14, 2016 9:50 PM

Answers

  • Hi,

    I'm not 100% sure if you want just teh contents of teh windows directory or everything on the disk but this is much easier in PowerShell

    (This will change into the root of your C Drive)
    PS>cd c:\ 
    (This will change into the windows directory)
    PS>cd c:\windows

    This will return all files beginning with wi
    PS>Get-ChildItem wi* -recurse

    if you really want to do it in batch file/cmd then 

    cd c:\
    dir wi* /s

    Thursday, December 22, 2016 4:36 PM