Batch File Did Not Run Correctly



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


.



Relevant Pages

  • Re: Batch File Did Not Run Correctly
    ... commands in the batch file are exactly the same, ... drive got disconnected before the software finished the installation. ... I do not get any error message. ...
    (microsoft.public.windows.file_system)
  • Re: .Net Application crash when .net framework is not installed
    ... Have your application get kicked off by a batch file or vbscript that first ... > error message is definitely a better way to do it.. ... >> install it, he will be notified to install the framework first. ...
    (microsoft.public.dotnet.framework)
  • Re: Batch File Did Not Run Correctly
    ... it gave me an error message. ... The batch file is supposed to install a software automatically. ... the command prompt, I do not get any error message. ...
    (microsoft.public.windows.file_system)
  • Re: Copying files using process class in ASP.NET
    ... If the problem is permissions, ... displaying an error message in the output stream. ... The batch file is using robocopy to copy over the files. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Batch File Did Not Run Correctly
    ... I do not get any error message. ... Your subsequent reply ("I added a Set Path command") does not really ... you typing each command manually and running the batch file. ... The batch file is supposed to install a software automatically. ...
    (microsoft.public.windows.file_system)

Loading