Sign in

Similar Content

Hello again,
I'm trying to use the FileMove function to rename a bunch of text files.
Some of the files have "_1" at the end of their name, for example, "File123_1.txt". I want to remove the "_1" so it would become "File123.txt".
What I currently have...
FileMove($sSource & "\*_1.txt", $sDestination & "\*.txt")
But since I'm using a wildcard, it doesn't appear to be working. I think it's just replacing .txt with .txt. Am I going about this the wrong way? How can I use wildcards and still accomplish this?
Any help is greatly appreciated ^__^

Hi, i want to read a particular string from a text file using autoit. i wish to read it without explicitly opening the text file. the copied string should be then transferred to an excelbook (again, no need to explicitly open the excel book)...

with reference to my screenshot attached, my input to the 'script'' is going to be 0017-0008, and the script should copy the highlighted two lines from the input file to excel
thanks

Hi, i have a problem :" can't set the name of file with a special character like: \;/;";|;... have anyway to short the StringInSrt and Stringreplace? i am using this code but too long
$title=InputBox(0,'','','')
if StringInStr($title,'\') or StringInStr($title,'/') or StringInStr($title,':') or StringInStr($title,'*') or StringInStr($title,'?') or StringInStr($title,'"') or StringInStr($title,'<') or StringInStr($title,'>') or StringInStr($title,'|') Then
$title=StringReplace($title,'\','-')
$title=StringReplace($title,'/','-')
$title=StringReplace($title,':','-')
$title=StringReplace($title,'*','-')
$title=StringReplace($title,'?','-')
$title=StringReplace($title,'"','-')
$title=StringReplace($title,'<','-')
$title=StringReplace($title,'>','-')
$title=StringReplace($title,'|','-')
EndIf