Question : batch file to search all drives

Need to write a batch file to search all drives for a specific file.
Below is what i have now. Thanks.
c:
CD \
dir *.pst /-c /s >> \\ispc28\PST\pstfiles.txt

Answer : batch file to search all drives

Try this.

set Drives=C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z
for %%D in (%Drives%) do dir %%D:\*.pst /-c /s >>\\ispc28\PST\pstfiles.txt

~bp
Random Solutions  
 
programming4us programming4us