I am trying to redirect output to a text file (actually a .vnc file) which has always worked great, when a user logs in it creates a file called "FULLNAME.VNC" on a network folder and our admins can double click the icon and see the users machine. I am trying to upgrade our VNC to the purchased version. when I do this I am unable to double click the icon any longer, I get "bad name/value pair". However, when I manually remove the leading 0 from the text file it works fine. My question is how do I force kixtart NOT to put the leading 0 in when I redirect output. Below is the code I use if you need it.

Thanks for the help.

---Start of code---
$IPNUM=(LTrim(SubStr(@IPADDRESS0,1,3)))+"."+(LTrim(SubStr(@IPADDRESS0,5,3)))+"."+(LTrim(SubStr(@IPADDRESS0,9,3)))+"."+(LTrim(SubStr(@IPADDRESS0,13,3)))

RedirectOutput("\\servername\sharename\@FULLNAME.vnc",1)
? "[connection]"
? "host=$IPNUM"
? "port=5900"
? "password=yeahsure"
? " "
? "[options]"
? "use_encoding_0=1"
? "use_encoding_1=1"
? "use_encoding_2=1"
? "use_encoding_3=1"
? "use_encoding_4=1"
? "use_encoding_5=1"
? "preferred_encoding=5"
? "restricted=0"
? "fullscreen=0"
? "8bit=0"
? "shared=0"
? "swapmouse=0"
? "belldeiconify=0"
? "emulate3=1"
? "emulate3timeout=100"
? "emulate3fuzz=4"
? "disableclipboard=0"
? "localcursor=1"
? "scale_num=1"
? "scale_den=1"
? "viewonly=1"

EndIf
---End of code---