The action command you’re using will not create a folder. Try this:
parameter "baseStaging"="C:\Staging\"
if {not exist folder (parameter "baseStaging")}
waithidden {pathname of system folder}\cmd.exe /C mkdir {parameter "baseStaging" as string}
endif
Part of the reason was your if statement wasn’t quite right. You had:
if not exist folder "{parameter "baseStaging"}"
You needed to encapsulate the statement after “if” in the relevance brackets:
if {not exist folder (parameter "baseStaging")}
The other part was the statement for actual folder creation is not a command action script would have understood if the “if” statement had evaluated true. The way I did it, you invoked CMD to do the folder creation.
EDIT: I didn’t notice you said it creates the folder without the if statement. That being the case, it was just because the relevance statement wasn’t encapsulated.
Why are you creating this folder on the root drive? I would not recommend this. Either use the BES Client downloads folder, or use the Windows Temp folder, or create a folder within the Windows Temp folder.
This relevance gives you the pathname of the windows temp folder:
pathname of folders "Temp" of windows folders
It is a very bad idea to create a bunch of folders on the root of the drive. It gets very messy.