Skip to main content
虎李9640763
Participant
March 9, 2015
Answered

How to use PS to judge the existence of a folder in the specified directory and how to use PS in the specified directory to create to create the folder?(javascript)

  • March 9, 2015
  • 2 replies
  • 287 views

1,How to use PS to judge the existence of a folder in the specified directory?(use javascript)

2, how to use PS in the specified directory to create to create the folder?(use javascript)


Thanks you!

This topic has been closed for replies.
Correct answer c.pfaffenbichler

if (Folder(/* insert the path here */).exists == false) {Folder(/* insert the path here */).create()}

2 replies

虎李9640763
Participant
March 10, 2015

Thanks you!

c.pfaffenbichler
Community Expert
c.pfaffenbichlerCommunity ExpertCorrect answer
Community Expert
March 9, 2015

if (Folder(/* insert the path here */).exists == false) {Folder(/* insert the path here */).create()}