Gain access to folder using username and password

Hi
Im trying to gain access to a folder to grab csv files using coldfusion that now requires a username and password, any suggestions on how this can be done?

can I just hard code the user name and password into coldfusion so it will automatically pick it up each time?

Thanks

Are you talking about an admin section? It’s not completely clear what you mean?

no i’m just trying to access it through the code, you need to enter a username and password to get into this folder now if you do start, run and enter the filepath, originally everyone had access to it so i never had a problem

but now i keep getting access denied error, Which would be correct as Its looking for a username as password, so i was thinking if I could hard code the user name and password into coldfusion so it would automatically pick it up when the user goes to that webpage.

but is the login request coming from the CF server or the web server (apache, IIS)?

It would be coming from the CF server

it doesn’t prompt me for a username or password, its just giving access denied