I am creating a repository folder and file structure with many dependencies in version control using .NET for our data warehouse. I currently have code for creating dummy files and folders with C # code (see below). However, there are common objects. Therefore, I would like to create shortcuts for Windows files and shortcuts for Windows folders as well as files. What would C # code look like for this?
Create a folder using C # .NET code:
string activeDir = @"C:\Source\EDW\dw-objects\trunk\table-objects"; string objectName = reader[0].ToString(); string newPath = System.IO.Path.Combine(activeDir, objectName); System.IO.Directory.CreateDirectory(newPath);
Code varies depending on files based on format
Macgyver
source share