You are not logged in.

#1 03 Jun 2017 01:45

Andrew.au
Member
Registered: 21 May 2017
Posts: 5

Which commands can accept multiple drive or file parameters?

DIR can:

dir *.bmp *.png *.jpg

Robocopy can:

robocopy source destination *.bmp *.png *.jpg

COPY can, when used to combine files.

VOL can:

vol c: d: e:

Any others?

Offline

#2 03 Jun 2017 20:00

Simon Sheppard
Admin
Registered: 27 Aug 2005
Posts: 1,130
Website

Re: Which commands can accept multiple drive or file parameters?

where *.txt *.doc

Also its interesting to note that there is a difference between

dir c:\demo\ h:\missing\

and

dir c:\demo h:\missing

The first version will list only directories, not files and it will fail (returns nothing) if either directory does not exist.

Offline

#3 05 Jun 2017 09:12

Andrew.au
Member
Registered: 21 May 2017
Posts: 5

Re: Which commands can accept multiple drive or file parameters?

Nice one Simon

Offline

#4 14 Jun 2017 11:49

Andrew.au
Member
Registered: 21 May 2017
Posts: 5

Re: Which commands can accept multiple drive or file parameters?

MKDIR can:

mkdir \Drivers\Display \Drivers\Media \Drivers\Net \Drivers\System \Drivers\USB

Works with relative or absolute paths.

Offline

#5 14 Jun 2017 18:14

bluesxman
Member
From: UK
Registered: 29 Dec 2006
Posts: 1,129

Re: Which commands can accept multiple drive or file parameters?

Off the top of my head:

type
del
rmdir
copy
xcopy
move

Last edited by bluesxman (14 Jun 2017 18:15)


cmd | *sh | ruby | chef

Offline

Board footer

Powered by