Ahk Scrpit that copy text from notepad and rename files Topic is solved
Re: Ahk Scrpit that copy text from notepad and rename files
I just tried this i removed number from notepad but i am still getting the Output in fn but without number now so i think that solves this.
Re: Ahk Scrpit that copy text from notepad and rename files Topic is solved
Code: Select all
If !A_IsAdmin && !(DllCall("GetCommandLine", "str") ~= " /restart(?!\S)") {
Try Run *RunAs "%A_AhkPath%" /restart "%A_ScriptFullPath%"
ExitApp
}
dir = c:\Users\New folder\New folder
ext = png
ControlGetText, list, Edit1, ahk_exe notepad.exe
notepad := StrSplit(list, "`r`n")
Loop, Files, %dir%\*.%ext%
If (notepad[A_Index] > "")
FileMove, %A_LoopFilePath%, % dir "\" notepad[A_Index] "." ext
MsgBox, 64, Done, Done!
Re: Ahk Scrpit that copy text from notepad and rename files
Thank you so much it works
I have one more question is it necessary to run this script as admin
I have one more question is it necessary to run this script as admin
Re: Ahk Scrpit that copy text from notepad and rename files
Your particular folder is protected by Windows. Otherwise, no.