Re: Batch files
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Wed, 5 Jul 2006 08:25:43 +1000
See below.
"RBDU" <nsw8235@xxxxxxxxxxxxxx> wrote in message
news:5cxqg.21198$ap3.16910@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi All! thanking anyone for a reply.database,
I have a few questions re Bat files in Windows XP.
1. I have a bat file called - Search.BAT. It copies a access 2003
on the close of that database to a Pen drive "F drive". Works OK but atto
times it causes the computer to freeze when the Bat file message is shown
the user.When you say "freeze" you probably mean "pause". This is
by design. Remove the "pause" command from your batch
file.
2. When the bat file window closes on click on any key to close thatwindow,
which it does, and the user returns to the windows screen it causes a slowand
response between the two. I had a response to this problem sometime ago
was asked to enclose the search bat. Any ideas here? Here is the:.............................................................................
Search.Bat
.......................
.............................................................................
cls
@echo "Now backing up Search Database, please wait....."
@echo off
copy D:\landsearch.mdb F:\
@echo "Backup now complete..."
@pause
@exit
........................
help
This problem did not exist pre WXP but the company updated. I read the
file in WXP and it appears a few things have changed re bat files. Theonly
thing I can think of, is in the pre XP version of windows, in the bat fileI
could select, "close on exit", which I can not do now.
Regards Peter
The usual way to write your batch file goes like this:
@echo off
echo Now backing up Search Database, please wait.....
copy /y D:\landsearch.mdb F:\
echo Backup now complete...
pause
If you remove the "pause" line then there will be no further
delay.
.
- Follow-Ups:
- Re: Batch files
- From: P.McCartney
- Re: Batch files
- References:
- Batch files
- From: RBDU
- Batch files
- Prev by Date: Re: writing do the DVD Drive
- Next by Date: Re: WGA
- Previous by thread: Batch files
- Next by thread: Re: Batch files
- Index(es):
Relevant Pages
|