Page 1 of 1 1
Topic Options
#18406 - 2002-03-07 03:21 PM Proper syntac
Ullrich Offline
Fresh Scripter

Registered: 2002-03-06
Posts: 9
How would you do this?

shell "%comspec% /c xcopy /s /e /h /y \\BUSSERVER\policy\TKF\*.* "C:\policy\Start Menu\Programs\""

The space in the middle of Start Menu is causing a "Too many parameters" error.

Top
#18407 - 2002-03-07 03:28 PM Re: Proper syntac
sigge Offline
Fresh Scripter

Registered: 2002-03-07
Posts: 8
Loc: Stockholm / Sweden
Hi there!

I had the same problem look at my thread

http://81.17.37.55/board/ultimatebb.php?ubb=get_topic;f=1;t=004325

/Sigge

Top
#18408 - 2002-03-07 03:28 PM Re: Proper syntac
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
See post http://81.17.37.55/board/ultimatebb.php?ubb=get_topic;f=1;t=004325

You will need to wrap yur command line into quotes and differ between single quotes and double quotes. In your example you would have to double the double quotes so that kixtart knows it's a quote in a text and not a delimiting quote for the command.

For example, this works synomynously:
code:
? '"'
? """"

but not
code:
? """

Therefore, you should use
code:
shell '%comspec% /c xcopy /s /e /h /y \\BUSSERVER\policy\TKF\*.* "C:\policy\Start Menu\Programs\"'

Please note, that I'm using single quotes to enclose the shell command.
_________________________
There are two types of vessels, submarines and targets.

Top
#18409 - 2002-03-07 03:35 PM Re: Proper syntac
Ullrich Offline
Fresh Scripter

Registered: 2002-03-06
Posts: 9
sealeopard,

Thanks, that did it. You guys are great!

Ullrich

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 708 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.049 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org