473,569 Members | 2,872 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stop 'file not found' error message appearing

97 Recognized Expert New Member
I have written a small Windows shell batch file to report on missing files.
The code correctly produces a list of (missing) numbers in a file as required, but for every entry, DIR outputs 'File Not Found' on the screen.
Does anyone know how to switch this error report off?

Expand|Select|Wrap|Line Numbers
  1. for /L %%f in (%1,1,%2) do (dir /s /b %%f.pdf>>nul
  2.  (if errorlevel 1 echo %%f >>list)
  3.  )
Jun 5 '07 #1
0 987

Sign in to post your reply or Sign up for a free account.

Similar topics

6
1514
by: Brad Tilley | last post by:
I'm printing some info into a txt file that will be uploaded into a MySQL DB. I use ';' as field separaters. How can I stop spaces from appearing on both sides of the ';' When I do this: print >> x,';',object,";",AN_string,";",ascii,";",sum My file looks like this:
4
2253
by: Mythran | last post by:
Hrm, I don't think it's possible to create a schema for the following XML, just asking in hopes of some good suggestions for it: <menuBar> <menuBarItem> <menu> <menuItem /> <menuItem /> <menuItem> <menu>
3
19391
by: Pascal Deparis | last post by:
Hi, When I stop my db2 instance, I have this error code : >db2stop 12-11-2003 16:12:48 0 0 SQL1042C An unexpected system error occurred. SQL1025N The database manager was not stopped because databases are still active. And in my db2diag.log file, I find this message below:
2
4086
by: Julia Baresch | last post by:
Hi everyone, As some of you may know, we've been having trouble with an unrecognized database format error. Today I installed an unfinished project on the workstation of one of my users. It's a query by form in which she enters the criteria of the record she wants in an unbound form, and it pulls only that record and switches to the...
0
1353
by: nutthatch | last post by:
I have an application that retrieves a large amount of data (ODBC linked) across the network, which occasionaly causes a timeout message to be displayed. I want to be able to handle this cleanly. I am using the onerror event on the form to identify when the error occurs and this successfully diplays my own modal popup form for the user...
1
1718
by: flconseil | last post by:
Hello, I am writing a tool to package several files into a single file. It is quite similar to the 'phar' PEAR package but with more features, as I want to connect it with an autoload mechanism. The problem I have today and it is the same in the PHAR package, is that I don't know how to restrict the PHP parser to the bootstrap code of the...
5
2190
by: Jon Davis | last post by:
I'm hosting a .NET console application in a .NET Windows Service using System.Diagnostics.Process. How do I block the debugger dialogue from appearing? Thanks, Jon
4
2503
by: ravindarjobs | last post by:
hi...... i am using ms access 2003,vb6 i have a form. in that i have 2 buttons 1. start search 2 stop search when i click the "start search" button the fucntion SearchSystem() is called, it will search for a particular file in the computer(searches entire drives).
4
9650
by: Phil Stanton | last post by:
I am opening a report (in Preview) from a menu system I use the following code if there is no data in a report Private Sub Report_NoData(Cancel As Integer) MsgBox "There are no errors in Membership Head of Families", vbInformation Cancel = True
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7681
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6290
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
950
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.