Am I missing something here??
 Code:
$ = SetOption('WrapAtEOL', 'On')
$datastring =  "'" + @TICKS + "','" + @USERID + "','" + @DATE + ' ' + @TIME + "','" + @IPADDRESS0 + "','" + @WKSTA + "','" + @PRODUCTTYPE + "','" +Split(@LDRIVE,'\')[2]+"'"
$datastring ?

The $datastring definition is from the original code, and everything is quoted. Since Brainstormer says it works from a command prompt or from the editor's debug function, I'd think that the code itself isn't 100% at fault.

What is different when you "drag and drop"? Maybe I'm too "old school" but I never run scripts of any kind that way. Probably why I use .KXF for Kix GUI scripts, too. Anyway, if a script works when you are at a command prompt and type "kix32 myscript.kix", but it doesn't work when you drag the script onto the executable, what's different?

When you "drag & drop", where are the following files:
Kix32.exe?
your script?
the UDFs?
If you say "desktop" to any of these, verify if the object on the desktop is a link or an actual file.

Glenn


_________________________
Actually I am a Rocket Scientist! \:D