Access denied error while creating directory in desktop

Hi Team,

I am creating a folder called uipath in desktop but getting access denied message. Could you please let me know any suggestion?

Thanks,
Ulaga

@Boopathi I think folder path is wrong

@indra I resolved it. I was trying to create directory using c:\users\public\desktop and then checked online and used environment.specialfolder.desktop + “Filename” and it worked