LoginSignup
1
1

More than 3 years have passed since last update.

AHK(AutoHotkey)を使い Alt + t ; 自分のデスクトップにタイムスタンプを使ったフォルダを作成する

Last updated at Posted at 2019-06-26

;------------
!t:: ; Alt+t
;------------

;デスクトップのフルパス
todayvar = %A_Now%

StringMid , yvar , todayvar , 1 , 4

StringMid , mvar , todayvar , 5 , 2

StringMid , dvar , todayvar , 7 , 2

StringMid , hmvar , todayvar , 9 ,4

;例:2019-06-06_1217 1分単位
cfn = %yvar%-%mvar%-%dvar%_%hmvar%

cfn = %A_Desktop%\%cfn%

;MsgBox , Today【フォルダ作成】%cfn%

;フォルダを作成
FileCreateDir, %cfn%

;作成したフォルダを開く
run , %cfn%

Sleep,300

Return

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1