Re: Batch File Did Not Run Correctly



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.







.



Relevant Pages

  • got it!
    ... set up a batch file in the winnt folder so i could run a series of commands ... You also have to lower the version of the policy, ... >> (you can use the scheduler to schedule remotely): ...
    (microsoft.public.win2000.security)
  • Re: Offline Defrag command line
    ... You can also create a batch file with all the commands pre-configured ... b/c you will have the commands and syntax in the batch file. ... It makes the life of an Exchange Admin easier. ...
    (microsoft.public.exchange.admin)
  • Re: Someone hacked one of my servers
    ... The first few commands are trying to open a C: drive by logging in with the ... The %1 command implies this is a batch file where the ... accounts named Admin or Administrator to allow future access. ... firewall logs Otherwise, ...
    (microsoft.public.win2000.security)
  • Re: Bash Script (WAS:Re: Suse 9.3 on a desktop replacement)
    ... PerfectReign wrote: ... > I created a batch file called, ... typed commands -- it spanned 30+ batch files and close to 2000 lines. ... you really want user feedback in the form of echo commands (and ...
    (alt.os.linux.suse)
  • Re: Importing dns records
    ... "Joe Cormane" wrote: ... a batch file for each of those commands to iterate through the contents ... then use those in a single batch file. ...
    (microsoft.public.windows.server.dns)