Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v2) • open this folder, if the other one does not exist

$
0
0
if the folder exists, it opens the folder
if the folder DOES NOT exist, it does not open the default folder
userinput variable works

CODE:

UserInput := ControlGetText('Edit1' , 'DAW3 v2.ahk', , , )




CODE:

zz := 0
Loop Files '\\folder1\folder2\folder3\' UserInput '*', 'D'
{
;PROJECT FOLDER
Run A_LoopFileFullPath
WinWait A_LoopFileName
WinMove 734, 511, 658, 475
z := 1
}


if (z := 0)
{
;DEFAULT FOLDER
Run '\\folder1\folder2\folder3\'
WinWait folder3
WinMove 734, 511, 658, 475
}

Statistics: Posted by sbrady19 — Today, 17:09



Viewing all articles
Browse latest Browse all 579

Trending Articles