Im trying to make a program that will run a set of Dos commands.. both internal comands and external dos commands (exanple internal dir,copy,rename.. external notepad.exe, calculator.exe...ect.) Im having problems with figuring out which command to use..
The variables will change depending on what you check. Like "DIR /S /P". So the command would be something like ("DIR" $var1 $ver2) or something like that.. It will also need it to export and import setting too.
****************************************
* Dir [x] /s [ ] /p [ ] /w [ ] /L *
* notepad [ ] test1.txt [x] test2.txt *
****************************************
so dir would run in shell window "dir /s" then notepad will open a file called test2.txt
so if "/s" is checked and "/p" is checked the $var_dir = /s /p
so $var_dir=var1+var2
ShellExecuteWait, Run, RunWait, RunAs, RunAsWait
if someone can tell me wich one I should run for it.
And where can I get info on how to import/export data of setting for what is checked for later recovery of settings.. if someone can point me in the right drection.
I tried
$var1="text1.txt"
Run(@WindowsDir & "\notepad.exe $var1" , "", @SW_MAXIMIZE)
That didnt work, it opened notepad and tried makeing a file called $var1 not the data of var1.. I'm new to AutoIT but have a lot of experince with DOS batch files. I'm trying to make some of them with GUI's.
Thanks for any help
Newbie
Rob
The variables will change depending on what you check. Like "DIR /S /P". So the command would be something like ("DIR" $var1 $ver2) or something like that.. It will also need it to export and import setting too.
****************************************
* Dir [x] /s [ ] /p [ ] /w [ ] /L *
* notepad [ ] test1.txt [x] test2.txt *
****************************************
so dir would run in shell window "dir /s" then notepad will open a file called test2.txt
so if "/s" is checked and "/p" is checked the $var_dir = /s /p
so $var_dir=var1+var2
ShellExecuteWait, Run, RunWait, RunAs, RunAsWait
if someone can tell me wich one I should run for it.
And where can I get info on how to import/export data of setting for what is checked for later recovery of settings.. if someone can point me in the right drection.
I tried
$var1="text1.txt"
Run(@WindowsDir & "\notepad.exe $var1" , "", @SW_MAXIMIZE)
That didnt work, it opened notepad and tried makeing a file called $var1 not the data of var1.. I'm new to AutoIT but have a lot of experince with DOS batch files. I'm trying to make some of them with GUI's.
Thanks for any help
Newbie
Rob