Sign in to follow this  
Followers 0
Lurch68b

ShellExecute variable

4 posts in this topic

Howdie all, I have been dabbling with autoit for a while but am not the most knowledgeable to say the least. I am trying to put a variable into a script here

This is what the line looks like by default

ShellExecute ("wcmdtool.exe" ,"20 c0 15 05 00 01 64")

But I want to be able to have a variable that will allow me to change the last parameter. I have tried a few things but always get errors 

ShellExecute ("wcmdtool.exe" ,"20 c0 15 05 00 01 $FS")

I have used variables before but never this way. I am sure it is very simple and I am missing something.

Thanks

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I think you would want to do

 

Shellexecute("wcmdtool.exe","20 c0 15 05 00 01 " & $FS)

 

Edited by tweakster2010
typo in code

Share this post


Link to post
Share on other sites

AKK, many thanks guys. I have seen a friend do that but didn't remember till I saw your post. See, very simple. 

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