Microsoft
Software
Hardware
Network
Question : Help Reqd. for AutoIt Script
Hi All,
I need some help on AutoIt.
My Sample Script.
---
Dim $sUserName = "MyID"
Dim $sPassword = "MyPass"
Dim $sDomain = "mydomain"
Dim $sFile = @TempDir & '\getudn.txt'
$uDn = FileRead($sFile)
$sPw = RunAsWait($sUserName, $sDomain, $sPassword, 0, @ComSpec & ' /k commandx user' $uDn '-pm")
content of the getudn.txt
SomeVariableParameters
I need to add that variable Parameters in autoit @ComSpec like follows..
$sPw = RunAsWait($sUserName, $sDomain, $sPassword, 0, @ComSpec & ' /k commandx user $uDn -pm")
to
$sPw = RunAsWait($sUserName, $sDomain, $sPassword, 0, @ComSpec & ' /k commandx user SomeVariableParameters -pm")
Where $uDn = SomeVariableParameters
Any help will be appreciated.
Thanks
Saugata
Answer : Help Reqd. for AutoIt Script
Hmm, I figured it out, Problem is with getudn.txt, at the time of creation on this file, every time it added a extra line a the end, and when i used FileRead, i am having problem, now i changed to
$uDn = FileReadLine($sFile, 1)
It worked fine..
Thanks
Saugata
Random Solutions
Quickr..How do I edit the tabs on the home page of my place? I want to add a tab
Using a query to filter a subreport?
Can I add multi-millions of records to SQL database while replication is on? Will it work?
How do i factory reset netvanta 1524st switch from the cli command line?
How can I record two DV (firewire) inputs simultanously to a PC or Mac?
what is the best way to remove opachki.ru trojan?
perl suppress printing when output to pipe
how to install certificate in SBS 2008
I am trying to load windows xp on a hp g71-340us laptop. The factory installed OS is windows 7 Home Premium. When the set-up disk is loading i get a Stop 0x0000007b BSOD.
Compare user security groups - Active Directory