Click here to Skip to main content
15,794,275 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,

I need help... I need to create a dynamic sub folder to store a particular job_id's Excel files within the sub folder with job_id's name, here the job_id is identity column.. say for e.g., JON101, JON123, etc.

sqlcmdsql.Parameters.AddWithValue("@fullFileName", "C:\Bcp\" + Utilities.Jobid + ".xls")

The above code is for generating an Excel file within a common folder, now I need to create a sub_folder...

Has anyone come across this issue? Please help me to resolve it.
Updated 7-Dec-09 3:26am

1 solution

Take a look at the '' namespace

Basically you'll have to check if the folder exists and if it doesn't create it before you save your excel file.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900