Folder Created if not exist

Hi,

I use below action script to create __UIDEXT folder if not exist as below path but its not working

appendfile if not exist “__GTS__UIDEXT mkdir __GTS__UIDEXT”

Please make correct if am missing something…

Regards,
Shaban

Got the right syntex as below,

if { not exists folder “\BigFix Enterprise\BES Client__GTS__UIDEXT” }
waithidden cmd.exe /C mkdir "\BigFix Enterprise\BES Client__GTS__UIDEXT"
endif

Regards,
Shaban

1 Like

There is also the "folder create" action script method which will create a folder if it doesn’t exists and you don’t have to pre-test for the existence before using it.

folder create C:\TEMP\TMP2
folder create "{pathname of parent folder of client & "\MyFolder"}"

2 Likes