Sign in to follow this  
Followers 0
HAL9000

problem with string and stringsplit

3 posts in this topic

i have this string that give error  "Unterminated string"  

It is too long?

Local $sText = '%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\*.scr,*.bmp*.scr,%appdata%\*\*.js,*.doc*.bat,*.mp3*.jse,%programdata%\*.jse,*.pub*.scr,*.xls*.exe,C:\Users\*.scr,*.pptx*.cmd,*.zip*.js,*.pub*.jse,%appdata%\*\*.exe,*.jpeg*.cmd,*.wav*.scr,*.zip*.jse,%userprofile%\AppData\LocalLow\*.scr,*.ppt*.js,*.gif*.cmd,*.wav*.cmd,%programdata%\Microsoft\Windows\Start Menu\Programs\Startup\*.cmd,*.avi*.scr,%appdata%\*.scr,%programdata%\*.js,*.docx*.cmd,*.ppt*.com,*.gif*.jse,%programdata%\Microsoft\Windows\Start Menu\Programs\Startup\*.exe,*.gif*.scr,%userprofile%\*.jse,*.rtf*.scr,%userprofile%\*.scr,*.jpeg*.jse,*.xlsx*.scr,*.avi*.exe,*.png*.pif,%userprofile%\AppData\LocalLow\*\*.exe,%programdata%\Microsoft\Windows\Start Menu\Programs\Startup\*.js,%userprofile%\AppData\Local\*.pif,*.7z*.cmd,*.divx*.jse,*.xlsx*.jse,*.wma*.exe,*.ppt*.bat,*.txt*.com,%userprofile%\AppData\*.bat,%appdata%\*.js,%appdata%\*\*.bat,%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\*.jse,*.rtf*.js,*.txt*.jse,*.docx*.bat,%userprofile%\AppData\Local\*.exe,*.rar*.jse,*.mp4*.exe,*.divx*.pif,*.png*.js,*.pub*.com,C:\Users\*.cmd,*.pub*.bat,*.mp3*.com,*.avi*.js,*.gif*.pif,*.pub*.pif,*.7z*.bat,%allusersprofile%\*.pif,%appdata%\*.bat,*.rtf*.cmd,*.wav*.exe,*.mp4*.pif,*.docx*.jse,*.divx*.scr,*.png*.jse,*.bmp*.exe,*.bmp*.pif,*.pdf*.jse,*.gif*.bat,%programdata%\*.exe,%userprofile%\AppData\LocalLow\*.js,*.wav*.pif,%userprofile%\AppData\Local\*.bat,*.doc*.scr,%appdata%\*\*.pif,*.pub*.exe,C:\Users\*.pif,*.rar*.com,*.bmp*.bat,*.xls*.cmd,%userprofile%\AppData\Roaming\*\*.pif,%userprofile%\AppData\LocalLow\*.exe,*.wma*.scr,*.zip*.scr,*.txt*.cmd,*.pub*.cmd,*.pptx*.scr,*.gif*.js,*.rar*.exe,*.pdf*.exe,syskey.exe,%allusersprofile%\*.scr,*.rar*.cmd,*.mp4*.com,%programdata%\Microsoft\Windows\Start Menu\Programs\Startup\*.scr,*.wav*.bat,*.mp3*.cmd,%userprofile%\AppData\Roaming\*.jse,%programdata%\Microsoft\Windows\Start Menu\Programs\Startup\*.pif,*.txt*.js,*.avi*.cmd,*.ppt*.pif,*.png*.cmd,*.divx*.exe,%userprofile%\AppData\LocalLow\*\*.pif,%appdata%\*.cmd,%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\*.js,%userprofile%\AppData\LocalLow\*\*.js,*.wav*.js,*.pptx*.exe,%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\*.com,%appdata%\*\*.jse,%userprofile%\AppData\LocalLow\*.pif,*.pdf*.pif,*.jpg*.pif,*.mp4*.js,*.pptx*.bat,%userprofile%\AppData\Roaming\*.scr,*.xls*.bat,%appdata%\*.pif,%programdata%\Microsoft\Windows\Start Menu\Programs\Startup\*.jse,%userprofile%\AppData\*.com,*.xlsx*.js,cipher.exe,%userprofile%\AppData\LocalLow\*\*.jse,*?*,*.ppt*.exe,*.rtf*.bat,*.xlsx*.exe,*.ppt*.scr,*.docx*.scr,%userprofile%\AppData\LocalLow\*\*.scr,C:\Users\*.bat,*.zip*.bat,%userprofile%\AppData\Roaming\*\*.exe,*.wma*.jse,*.wmv*.pif,*.jpeg*.exe,%userprofile%\*.pif,*.wav*.jse,*.pptx*.js,%appdata%\*\*.com,%userprofile%\AppData\Roaming\*.com,*.jpeg*.js,*.7z*.exe,%allusersprofile%\*.com,%allusersprofile%\*.bat,*.xls*.jse,*.7z*.com,*.divx*.com,%userprofile%\AppData\Local\*.jse,%userprofile%\AppData\LocalLow\*\*.com,*.docx*.exe,%userprofile%\AppData\Roaming\*.exe,*.mp4*.scr,*.wav*.com,%userprofile%\AppData\Roaming\*.pif,*.bmp*.jse,*.divx*.cmd,%allusersprofile%\*.js,*.bmp*.js,%userprofile%\*.cmd,%appdata%\*.exe,*.xls*.scr,%userprofile%\AppData\Local\*.js,*.jpg*.bat,%userprofile%\AppData\*.cmd,%userprofile%\AppData\LocalLow\*\*.cmd,%userprofile%\AppData\*.scr,%userprofile%\*.exe,%appdata%\*\*.scr,*.mp4*.bat,*.pdf*.bat,*.png*.bat,*.pptx*.jse,%programdata%\*.com,C:\Users\*.exe,*.avi*.com,*.txt*.exe,*.wmv*.js,%programdata%\Microsoft\Windows\Start Menu\Programs\Startup\*.bat,*.doc*.jse,*.rtf*.com,*.xlsx*.pif,*.xls*.pif,*.ppt*.cmd,*.pub*.js,*.rar*.bat,%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\*.pif,%userprofile%\AppData\Roaming\*\*.bat,%userprofile%\AppData\Local\*.scr,%programdata%\*.scr,*.gif*.com,%userprofile%\AppData\*.jse,*.rtf*.exe,*.pdf*.com,%userprofile%\AppData\LocalLow\*.cmd,*.xlsx*.bat,vssadmin.exe,*.pdf*.js,*.docx*.js,%userprofile%\*.js,*.wma*.cmd,%appdata%\*.jse,*.doc*.js,*.mp3*.pif,%programdata%\*.cmd,C:\Users\*.js,%allusersprofile%\*.jse,*.doc*.com,*.7z*.jse,%allusersprofile%\*.exe,*.doc*.exe,*:\$Recycle.Bin,%userprofile%\AppData\LocalLow\*\*.bat,%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\*.bat,*.rar*.js,*.mp3*.exe,*.mp3*.scr,%userprofile%\AppData\*.js,*.wma*.bat,*.txt*.scr,%userprofile%\AppData\LocalLow\*.jse,%appdata%\*\*.cmd,*.wma*.js,%userprofile%\AppData\*.pif,*.jpg*.js,*.jpeg*.pif,%userprofile%\AppData\LocalLow\*.com,*.rtf*.pif,*.mp4*.jse,%userprofile%\AppData\Roaming\*\*.cmd,%userprofile%\*.com,*.rtf*.jse,*.zip*.pif,*.avi*.pif,*.png*.com,*.docx*.com,%appdata%\*.com,%userprofile%\AppData\LocalLow\*.bat,%userprofile%\AppData\Roaming\*.bat,*.7z*.js,%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\*.exe,*.jpg*.jse,*.ppt*.jse,*.zip*.com,%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\*.cmd,*.doc*.cmd,*.jpg*.com,*.jpeg*.scr,*.wma*.com,*.zip*.exe,*.xlsx*.com,*.wmv*.jse,*.jpg*.cmd,*.xls*.com,%programdata%\*.pif,%userprofile%\AppData\Roaming\*.cmd,*.pdf*.scr,*.png*.scr,*.pdf*.cmd,C:\Users\*.jse,*.divx*.js,%userprofile%\*.bat,*.7z*.scr,*.divx*.bat,*.gif*.exe,*.wma*.pif,%userprofile%\AppData\*.exe,*.bmp*.com,*.jpg*.scr,*.wmv*.com,%userprofile%\AppData\Roaming\*\*.jse,*.wmv*.bat,%programdata%\Microsoft\Windows\Start Menu\Programs\Startup\*.com,*.txt*.bat,%allusersprofile%\*.cmd,*.jpeg*.com,*.avi*.jse,%userprofile%\AppData\Local\*.com,*.wmv*.exe,*.rar*.scr,*.txt*.pif,*.mp3*.bat,*.pptx*.com,%programdata%\*.bat,%userprofile%\AppData\Local\*.cmd,%userprofile%\AppData\Roaming\*\*.com,*.wmv*.scr,%userprofile%\AppData\Roaming\*.js,*.avi*.bat,*.doc*.pif,*.pptx*.pif,*.png*.exe,*.xls*.js,*.jpeg*.bat,*.7z*.pif,*.bmp*.cmd,*.mp4*.cmd,*.rar*.pif,*.mp3*.js,*.xlsx*.cmd,%userprofile%\AppData\Roaming\*\*.scr,*.jpg*.exe,*.docx*.pif,%userprofile%\AppData\Roaming\*\*.js,*.wmv*.cmd,*.zip*.cmd'

 

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

It's looks to be too long. Split it into sections, concatenate each part and try again. I think the maximum length for a line of AutoIt code is 4096 characters. I can't remember the exact length.

Edited by czardas

Share this post


Link to post
Share on other sites
2 minutes ago, czardas said:

It's looks to be too long. Split it into sections, concatenate each part and try again. I think the maximum length for a line of AutoIt code is 4096 characters. I can't remember the exact length.

Correct. 

1 person likes this

_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0