Jump to content
Sign in to follow this  
GGG111

How can I add Parameters to my script

Recommended Posts

GGG111

Hello

I want to write a script with parameters, So I can run separate function from one application

for example:

Application to change files attributes, It runs like this:

attrib.exe -s make file as system file

attrib.exe -h make file as hidden file

and so on

how can I do that

Thanks in advance

Share this post


Link to post
Share on other sites
dbzfanatic
Valuater

Maybe...

Function FileSetAttrib

Sets the attributes of one or more files.

FileSetAttrib ( "file pattern", "+-RASHNOT" [, recurse] )

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
dillonlim

Hello

I want to write a script with parameters, So I can run separate function from one application

for example:

Application to change files attributes, It runs like this:

attrib.exe -s make file as system file

attrib.exe -h make file as hidden file

and so on

how can I do that

Thanks in advance

Take a look at AutoIt help topic "Running Scripts". There's a section called "Command Line Parameters". I believe that's what you're looking for.

Share this post


Link to post
Share on other sites
GGG111

I read it before, but I thought It's for autoit3 not to my scripts

Any way, Thanks

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  

×