Hello,
I am a fresh scripter for Kix. Just discovered it a few days ago when an unusual request came through. I work with Bat files frequently and someone asked me to make a GUI forntend for it. Kix works great and KixForms is an excellent piece of software. So the problem is probably the way i am thinking about this problem.
I need to pass parameters to another program in cmd it is easy and goes something like this
compress Source Destination FLAGS
I have the KixForm application getting the filepath and passing it onto the appropriate variable. so essentially what i have is :
SHELL 'M:\fullpath\Compress '+ $Source + $Dest +' FLAGS FLAGS FLAGS'
the program runs as expected but since the file path has spaces it breaks the source address into pieces whereever the space is encountered. FOr Example : c:\Documents and Settings\username gives me 'Settings\username' is an invalid parameter.
Usually quotes around the path resolve this issue. I have tried ', '', ", "" and several other variation of quotes but all to no avail. I just need to know how to manipulate strings in a very basic fashion by adding quotes around all of it so that it can be passed as one string per parameter.
My Strings are already variables.
Thanks to anyone and everyone who helps me out with this.
_________________________
--------------------------------------------
Morpheus Exegis
SAND TEK