Passing a Variable to create new Directory and New File

  • 12 years ago

    Does anyone know how to use a variable (example:  Me!VariableName) to create a new Directory by adding it to the Application.CurrentProject.Path or literally naming it if necessary (like F:\CompanyData\VariableName), and then naming the file with an extension (like VariableName1.Doc) as a Word file???

    I need it to end up like F:\CompanyData\VariableName\VariableName1.Doc

    Much thanks for any help

    Dave

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Weeks of coding can save you hours of planning.”