Re: Batch File Did Not Run Correctly
- From: "Diane Walker" <ett9300@xxxxxxxxx>
- Date: Thu, 6 Mar 2008 07:09:05 -0800
Thanks for your reply. You are correct. The commands that I typed and the
commands in the batch file are exactly the same, word by word. Why the
batch file does not work? I have no idea. By adding the path statement in
the batch file, the software ran successfully. However, I just noticed that
some of the files were not copied to the workstation. Perhaps, the map
drive got disconnected before the software finished the installation.
Thanks again.
Diane
"Pegasus (MVP)" <I.can@xxxxxxxxxx> wrote in message
news:ubPZs62fIHA.5164@xxxxxxxxxxxxxxxxxxxxxxx
In your original post you wroge "However, if I manually type each line at
the
command prompt, I do not get any error message. The software is installed
correctly. Can you think of any reasons?"
Your subsequent reply ("I added a Set Path command") does not really
clarify the issue. I think there were some important differences between
you typing each command manually and running the batch file. The
basic fact is: Running commands in a batch file has exactly the same
result as typing them in by hand - provided that you keep everything
else the same!
"Diane Walker" <ett9300@xxxxxxxxx> wrote in message
news:u3L%23dH0fIHA.5752@xxxxxxxxxxxxxxxxxxxxxxx
You are correct. I added a Set Path command "Set path=C:\". The
software installed without the error message. However, my map drive does
not get disconnected. Thanks.
"Pegasus (MVP)" <I.can@xxxxxxxxxx> wrote in message
news:O6YyzfxfIHA.1188@xxxxxxxxxxxxxxxxxxxxxxx
"Diane Walker" <ett9300@xxxxxxxxx> wrote in message
news:OX9wrbxfIHA.6136@xxxxxxxxxxxxxxxxxxxxxxx
I setup a batch file with a series of commands. If I run the batch
file (install.bat), it gave me an error message. The error message
occurs after the "setup.exe" is run. It said it cannot copy some of the
files (readme.txt, ID file not copied, ss.ini, etc.). Then, the batch
file stops. The batch file is supposed to install a software
automatically. The software never installs. However, if I manually
type each line at the command prompt, I do not get any error message.
The software is installed correctly. Can you think of any reasons?
The software resides on the server "ops1" and the share name is "ss".
Thanks.
@echo off
net use Z: \\ops1\ss
Z:
setup.exe /:L0
net use Z: /delete /yes
I suspect that either the source or else the destination of
these "copy" commands does not exist when you run the
batch file.
.
- References:
- Batch File Did Not Run Correctly
- From: Diane Walker
- Re: Batch File Did Not Run Correctly
- From: Pegasus \(MVP\)
- Re: Batch File Did Not Run Correctly
- From: Diane Walker
- Re: Batch File Did Not Run Correctly
- From: Pegasus \(MVP\)
- Batch File Did Not Run Correctly
- Prev by Date: Re: Corrupt $Secure file
- Next by Date: Re: Dump folder permissions with sub folders
- Previous by thread: Re: Batch File Did Not Run Correctly
- Next by thread: Re: Dump folder permissions with sub folders
- Index(es):
Relevant Pages
|