Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Dir CMD not reading as it did

23 Apr 2011   #1

Windows 7
Dir CMD not reading as it did

Hey there,
Im having problems running a programically generated BAT file that used to work fine on the VISTA platform. The command I am running is:
"Dir E:\VB Project\SearchForFiles /S/B | FindStr /L/I /C:"form" > D:\Search.Txt"
(NB Below)

This as I say worked fine under VISTA.
Under WINDOWS 7 I get the following error:
"The system cannot find the file specified.
FINDSTR: // ignored"

If I run the command: "Dir E: /S" I will get a complete listing for all files and directories as one would expect....including the directory VB Project
If I run the command "Dir E:\VB Project /S" I get the error (After the system thinks about it): "File not found"

I have attached a scren shot of the errors.

I am at a loss as to why it behaves this way.


NB The VB app generates the BAT file based on selected data from within a Miscrosoft Common Dialog control.

Attached Images
Dir CMD not reading as it did-screenshot.jpg 
My System SpecsSystem Spec
23 Apr 2011   #2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64

Try using qoutes because of the spaces in the file name

Dir E:\"VB Project"
My System SpecsSystem Spec
23 Apr 2011   #3

Windows 7

SIW2 > It seems to have resolved the problem. Thank you.
My System SpecsSystem Spec

23 Apr 2011   #4

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64

You're welcome
My System SpecsSystem Spec

 Dir CMD not reading as it did

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar help and support threads
Thread Forum
What are you reading?
For those readers amongst us, what book are you currently reading? For me, it's Isaac Asimov's Foundation.
Chillout Room
Help Reading CBS.Log
Not quite sure what forum this problem should go in, so I'm putting it here in general I guess. So long story (Skip to bottom for actual current question). I downloaded Final Fantasy VII off steam and tried to play it. The game repeatedly crashed without error message. I tried to skip the...
Reading a old HD
Have a old HD I want to read. Need to get the pictures off of it. It is SATA. Pluggged it into my pc, after disconnecting my main HD, but it asks to boot from CD/ROM. I don't have a cd for that HD. What can I do to successfully read it? Thanks.
Hardware & Devices
Some useful reading here
I don't know if it's allowable but I get these newsletters from ZNet and this one caught my eye as I am interested in security stuff. Some of the links within the newsletter are also eye openers:shock: Breached security vendors' response should focus on customers - ZDNet Asia News
System Security
not reading DVD
I burned the windows 7 iso image onto DVD using Nero and the image looks good, installed it in a virtual machine on my linux laptop. When I go to load the same DVD on my old AMD semperon (2.0mhz)system (2.0gig of mem, 160 gig HD), it will not read the DVD. I made another image and still the same...
Installation & Setup
CPU reading?
Hi My CPU meter (the gadet from the desktop) is showing that the minimum amount of RAM is always above 30%. It doesn't go particularly higher than this when I run lots of programs - is this OK? I am a complete novice to this and any comments are greatefully appreciated. Thanks:p
Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 16:32.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App