Jump to content

Recommended Posts

Posted (edited)

ControlSend ("[CLASS:Progman]", "", "SysListView321", "{F5}")

can I do that from command line or .cmd file ?

I need that after running some registry tweaks.

thank you

c

 

 

Edited by oneLess
Posted

Compile your script to an Exe and then call it.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted
  On 3/26/2016 at 11:45 AM, water said:

Compile your script to an Exe and then call it.

Expand  

thank you

 

this is what I doing now

the .exe is runned by my .cmd file

but IF I can write only one line in the .cmd file

wich will do the same thing [refresh desktop]

will be better

[

its about some links I create on desktop silent

and I must do a refresh for viewing them

]

c

Posted

Running a compiled Exe IS a single line. So why would another oner-liner be better? :huh:

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Just adding how i do it

Func _RefreshDesktop()
    RunWait(@ComSpec & " /c " & "taskkill /f /im explorer.exe", "", @SW_HIDE) ; close desktop
    RunWait(@ComSpec & " /c " & "start " & @WindowsDir & "\explorer.exe", "", @SW_HIDE) ; restart desktop
EndFunc   ;==>_RefreshDesktop

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...