Jump to content

Recommended Posts

Posted

I've written a script that will install a set of applications for a baseload I use at the office when i build computers.

here are the first two lines

START /WAIT "\\servername\smspkg\MICROSOFT OFFICE 2003 SP1\Source\SETUPPRO.EXE"
START /WAIT "\\servername\smspkg\CITRIX ICA CLIENT 7.10\WXP\setup.EXE"

Now, if that is run, just like it is, it will immediatly pop open another CMD prompt and take me to C:\WINDOWS and NOT launch the application that is in quotes. I think the quotes are screwing it up.

If I remove the quotes it will say that the path is invalid because of the spaces.

If anyone has any ideas about what I'm doing wrong, or if I could use a VBS script to launch the files, that would be fine also. I'm just looking for a way to install the "typical" 50 programs that our office needs.


Posted

try using 8.3 filenames probably something like:

START /WAIT "\\servername\smspkg\MICROS~1\Source\SETUPPRO.EXE"
START /WAIT "\\servername\smspkg\CITRIX~1\WXP\setup.EXE"

with or without the quotes.

Posted

The 1st set of quotes are expected to be a description. Use this:

START "Office Setup" /WAIT "\\servername\smspkg\MICROS~1\Source\SETUPPRO.EXE"
START "Citrix Install" /WAIT "\\servername\smspkg\CITRIX~1\WXP\setup.EXE"

Posted
The 1st set of quotes are expected to be a description. Use this:
START "Office Setup" /WAIT "\\servername\smspkg\MICROS~1\Source\SETUPPRO.EXE"
START "Citrix Install" /WAIT "\\servername\smspkg\CITRIX~1\WXP\setup.EXE"

Yup! Thanks!

  • 3 weeks later...
Posted

Or you could of course just forget 'start' altogether. The command line interface waits for an application to terminate by default. Unless you require the additional functionality of start, theres really no point to using it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...