Tuncay Try that script in programm files, dont work.. thanks anyway
Code:
F1:: ;Current Dir to Readme.txt :(
ControlGetText, cgt, Edit1, A
path = %cgt%
;MsgBox %path% ; in example "C:\Programme\AutoHotkey\AutoHotkey.exe"
SplitPath, path,, dir
MsgBox %dir% ; in example "C:\Programme\AutoHotkey"
dirNameOnly := getDirName(dir)
MsgBox %dirNameOnly% ; in example "AutoHotkey"
getDirName(_path) {
Return SubStr(_path,InStr(_path,"\",0,0)+1)
}
SplitPath, cgt, name, dir, ext, name_no_ext, drive
FileMove, %cgt%\Readme.txt, %cgt%\%dirNameOnly%_ReadMe.txt ; Rename a single file.
Return
F2:: ;Create Test ReadMe file
FileAppend, `n%1DT%, %A_ScriptDir%\ReadMe.txt
Return
F3:: ; That work no problem.
ControlGetText, cgt, Edit1, A
FormatTime, 3DT,, ddMMyy,HH-mm-sss
FileMove, %cgt%\Readme.txt, %cgt%\%3DT%_ReadMe.txt
!x::ExitApp
sorry Humans, im terrible noob!!!
that's what i need,
Code:
F3::
ControlGetText, cgt, Edit1, A
SplitPath, cgt, name, dir, ext, name_no_ext, drive
FileMove, %cgt%\Readme.txt, %cgt%\%name%_ReadMe.txt
Return
thank U all!