Page 1 of 1 1
Topic Options
#197330 - 2010-01-08 03:57 PM Quotes in Shell
KIXKicks Offline
Starting to like KiXtart

Registered: 2002-07-26
Posts: 177
Loc: Vancouver, WA
Can someone fix this line of code to be more kix friendly?

 Code:
Shell '%COMSPEC% /C "S:\SYMANTEC\SYMANTEC ENDPOINT PROTECTION 11 MR2 MP1\PATCH\SEP32_25TO333_CLIENTMSPMSI\MSILU.EXE" /P
 "S:\SYMANTEC\SYMANTEC ENDPOINT PROTECTION 11 MR2 MP1\PATCH\SEP32_25TO333_CLIENTMSPMSI\PATCH.MSP" /U /I
 "S:\SYMANTEC\SYMANTEC ENDPOINT PROTECTION 11 MR2 MP1\PATCH\SEP32_25TO333_CLIENTMSPMSI\SYMANTEC ANTIVIRUS.MSI"'


I was thinking of changing the folder structure to eliminate the spaces...

Thoughts?


Edited by Kdyer (2010-01-08 04:26 PM)
Edit Reason: Break long line into different lines

Top
#197332 - 2010-01-08 04:25 PM Re: Quotes in Shell [Re: KIXKicks]
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
KIXKicks,

Looking At your code..
 Code:
; -- Here is what you have today.. I have taken the liberty of breaking it in the smaller chunks
Shell '%COMSPEC% /C "S:\SYMANTEC\SYMANTEC ENDPOINT PROTECTION 11 MR2 MP1\PATCH\SEP32_25TO333_CLIENTMSPMSI\MSILU.EXE"
/P "S:\SYMANTEC\SYMANTEC ENDPOINT PROTECTION 11 MR2 MP1\PATCH\SEP32_25TO333_CLIENTMSPMSI\PATCH.MSP" /U /I
"S:\SYMANTEC\SYMANTEC ENDPOINT PROTECTION 11 MR2 MP1\PATCH\SEP32_25TO333_CLIENTMSPMSI\SYMANTEC ANTIVIRUS.MSI"'


Now, let's break this down..
 Code:
; -- What I would recommend to do is to use Variables
$EndPoint = "SYMANTEC ENDPOINT PROTECTION 11 MR2 MP1"
$MSILOC = "SEP32_25TO333_CLIENTMSPMSI"

; -- So, now you should be able to simplify this quite a bit..

$CMD = '%COMSPEC% /C "S:\SYMANTEC\"'+$EndPoint+'"\PATCH\"'+$MSILOC+'"\MSILU.EXE"
$CMD = $CMD + '/P "S:\SYMANTEC\"'+$EndPoint+'"\PATCH\"'+$MSILOC+'"\PATCH.MSP" /U /I'
$CMD = $CMD + '"S:\SYMANTEC\"'+$EndPoint+'"\PATCH\"'+$MSILOC+'"\SYMANTEC ANTIVIRUS.MSI"'

Shell $CMD

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#197333 - 2010-01-08 04:43 PM Re: Quotes in Shell [Re: Kdyer]
KIXKicks Offline
Starting to like KiXtart

Registered: 2002-07-26
Posts: 177
Loc: Vancouver, WA
Thanks...
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 128 anonymous users online.
Newest Members
SERoyalty, mytar, Gabriel, Alex_Evos, Dansen
17869 Registered Users

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

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