Re: commands not waiting, /wait not helping



On Sun, 24 Apr 2005 22:52:04 -0700, "bh"
<bh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

>Thanks, yes I had come to the same conclusions.
>But have you ever seen wise actually wait even with
> start /wait ... ?
>for me it returns immediately even though the compilation happens a moment
>later, so I presumed it is spawning a second process and exiting.
>This all started because I have a main app installer that itself installs 3
>smaller install programs, and I wanted to ensure the included projects were
>current before compiling the main one. A programmer had put together these
>batch files, but apparently never checked to see that it waited and actually
>worked LOL.
>So much for saving some time with a quick batch file; Clearly I need to do a
>.mak script or simply have the main install script either prompt the user for
>each project or take the time to regenerate them every time.
>
>Thank you all very much for your time on this. I certainly know the Start
>command better than I used to!

start /wait wise9.exe /s /c setup.wse

is working fine for me. It does not return until Wise9 finishes
compiling. I tried a large (20MB) project and it worked fine on Win2K.
I have not installed Wise9 on any other O/S.

I have only tested this interactively.


>"Severian [MVP]" wrote:
>
>> On Sun, 24 Apr 2005 19:42:01 -0700, "bh"
>> <bh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>> >"Gary Chanson" wrote:
>> >> You should be able to execute something like:
>> >> START /wait "C:\Program Files\Wise Installation System\Wise9.exe" /c
>> >> "U:\path\Scriptfile.wse"
>> >
>> >you may think it "should", as I did, but in fact that is exactly what does
>> >NOT work.
>> >Start aborts with an "invalid switch" reply.
>>
>> (All of the below is on Win2k; I haven't tested on later OSes.)
>>
>> What seems like it should be the obvious solution gives me exactly the
>> same error. The START command hates the quoted parameters.
>>
>> Try this simple test:
>>
>> start "some text file.txt"
>>
>> It will open a new, empty command window, instead of notepad with the
>> file.
>>
>> For Wise, like most application, I always install it in a simple
>> folder (i.e., d:\dev\Wise9). Then, this works fine:
>>
>> start/wait d:\dev\wise9\wise9.exe /c /s setup.wse
>>
>> Another option is to add the wise installation folder to your PATH
>> environment variable; then you should be able to do:
>>
>> start/wait wise9 /c /s setup.wse
>>
>> Also, wise should really provide a separate command-line compiler, to
>> make it easy to use from Visual Studio and other IDEs.
>>
>> --
>> Phillip Crews aka Severian
>> Microsoft MVP, Windows SDK
>> Posting email address is real, but please post replies on the newsgroup.
>>

--
Phillip Crews aka Severian
Microsoft MVP, Windows SDK
Posting email address is real, but please post replies on the newsgroup.
.



Relevant Pages

  • Re: commands not waiting, /wait not helping
    ... smaller install programs, and I wanted to ensure the included projects were ... batch files, but apparently never checked to see that it waited and actually ... The START command hates the quoted parameters. ... > For Wise, like most application, I always install it in a simple ...
    (microsoft.public.win32.programmer.tools)
  • Re: Make command
    ... > 'command not found' ... compiling will depends if you need to install more of the tools. ... When compiling from source the ./configure and make should be done as user, ... tools section) you will be able to use the command "checkinstall" instead ...
    (alt.os.linux.suse)
  • Compiling and installing ...
    ... I wanted to install gkrellm and tried the command 'make' which produced ... lots of errors on compiling. ... Do you use rpm -q <package name> to find out whether your ...
    (Fedora)
  • RE: fedora-list Digest, Vol 12, Issue 203
    ... >the Install programs app to get all the Development stuff at once. ... >Yes, I have tried running it from the command line, it just died with no ... >which defaulted to LVM use on a single drive. ... > O splendente, che vieni dalle sorgenti del Nilo, ...
    (Fedora)
  • RE: Error: Cant load /cygdrive/c/Oracle/Ora81/bin/Oracle for module DBD::Oracle...
    ... The main thing to remember here is DON'T unpack distributions into the Perl ... to make a 'src' directory for compiling in my home directory. ... You've now messed up your Perl library directories somewhat, ... You should get away with this so long as you haven't tried to install any ...
    (perl.dbi.users)

Loading