Time in string

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
urds
Posts: 2
Joined: 21 Jan 2019, 15:03

Time in string

21 Jan 2019, 15:52

Help !

I have read trough lots of Posts here but most is far too complicated.
I just want to copy a file and use its timestamp as the name for the copy.

Here is what I tried ->

Code: Select all

^q::
FileGetTime, mytime , tranceiver0.wav, M
myfile = %mytime%.wav
FileCopy, tranceiver0.wav, myfile
return
Moderator Note: Added code tags. ~ sinkfaze
User avatar
TheDewd
Posts: 1510
Joined: 19 Dec 2013, 11:16
Location: USA

Re: Time in string

21 Jan 2019, 16:48

Code: Select all

FileCopy, tranceiver0.wav, %myfile%
urds
Posts: 2
Joined: 21 Jan 2019, 15:03

Re: Time in string

22 Jan 2019, 05:49

Tanks very much ! that % solved it all :-)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, jameswrightesq and 289 guests