Jump to content
Sign in to follow this  
mrmacadamia

Help me with this long code

Recommended Posts

mrmacadamia

%SystemRoot%\system32\regsvr32.exe /s /n /i:"/InstallVS:'%SystemRoot%\resources\themes\Oblivious\Oblivious.msstyles','NormalColor','NormalSize'" %SystemRoot%\system32\themeui.dll

this is the code that i want to run via autoit. It is too long to use it with Run and shellexecute. I tested different combination of " or ' and i give up.

Currently i use controlsendtext to the start>run and click ok.

thanks

Share this post


Link to post
Share on other sites
Authenticity

Opt('ExpandVarStrings', 1)

Dim $sRun = '%SystemRoot%\system32\regsvr32.exe /s /n /i:"/InstallVS:''%SystemRoot%\resources\themes\Oblivious\Oblivious.msstyles'',''NormalColor'',''NormalSize''" %SystemRoot%\system32\themeui.dll'
Run(@ComSpec & ' /c $sRun$', '', @SW_HIDE)

Share this post


Link to post
Share on other sites
mrmacadamia

Opt('ExpandVarStrings', 1)

Dim $sRun = '%SystemRoot%\system32\regsvr32.exe /s /n /i:"/InstallVS:''%SystemRoot%\resources\themes\Oblivious\Oblivious.msstyles'',''NormalColor'',''NormalSize''" %SystemRoot%\system32\themeui.dll'
Run(@ComSpec & ' /c $sRun$', '', @SW_HIDE)

Authenticity,

You are simply awesome.

thank you so much.

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  

×