Sign in to follow this  
Followers 0
tempman

Run trouble...

4 posts in this topic

DOS:

C:\Documents and Settings\Administrator>explorer "C:\WINDOWS"

AutoIT:

Run(@ComSpec & " /c " & 'explorer.exe C:\WINDOWS',"",@SW_HIDE)

I want to add $var:

$var = 'C:\WINDOWS'
Run(@ComSpec & " /c " & 'explorer.exe' & $var,"",@SW_HIDE)

This don't work!

Help! :)

Share this post


Link to post
Share on other sites



This works (at least for me):

$Var = "C:\WINDOWS"
$R = Run(@ComSpec & " /c explorer.exe " & $Var,"",@SW_HIDE)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

OMG!!! :)

I find error, I just need to add one more space behind explorer.exe!!!

Before: 'explorer.exe'

After: 'explorer.exe '

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

$var = 'C:\WINDOWS'
Run(@ComSpec & " /c " & 'explorer.exe' & $var,"",@SW_HIDE)

This don't work!

Help! :)

Edited by Manko

Yes i rush things! (I sorta do small bursts inbetween doing nothing.) Things I have rushed and reRushed:* ProDLLer - Process manager - Unload viri modules (dll) and moore...* _WinAPI_ProcessListOWNER_WTS() - Get Processes owner list...* _WinAPI_GetCommandLineFromPID() - Get commandline of target process...* _WinAPI_ThreadsnProcesses() Much info if expanded - optional Indented "Parent/Child"-style Processlist. Moore to come... eventually...

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