Jump to content

Recommended Posts

Posted

when i use it, AutoIt says "unterminated string"

$vbsscript = ' strComputer = "." ' & @CRLF & ' _

Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") ' & @CRLF & ' _

...................

Posted

when i use it, AutoIt says "unterminated string"

That's supposed to all be one line, not 3. :wacko:

Nomad :D

  • Developers
Posted

when i use it, AutoIt says "unterminated string"

07th September, 2005 - v3.1.1.74 (beta)

Changed : Set _ to be a continuation character only after whitespace. It does not matter if a comment follows the continuation character or not. \ is not a continuation character. (by Nutster)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

$vbsscript = ' strComputer = "." ' & @CRLF _
& 'Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") ' & @CRLF _
& ;something else

Think this will work!

Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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
×
×
  • Create New...