3
Vote

invalid path

description

The working directory does not exist when bcp.exe is running for the first table. Main() is catches an invalid path exception and ScriptDb.exe fails to complete.

file attachments

comments

Robsoft wrote Aug 30, 2008 at 4:24 PM

Is there a work-around for this at all? Thanks!

wrote Aug 30, 2008 at 4:24 PM

Bard wrote Sep 22, 2008 at 10:55 AM

I simply made the missing folder using explorer and it worked.

Now I use a custom batch file that calls Bcp.exe to create data tables, so I don't need scriptDb to create the data files.

monsieur_arrie wrote Nov 24, 2008 at 5:23 PM

This is an easy fix, in the class DatabaseScripter.cs, the output directory is set on line 316 to a directory that doesn't exist. The variable 'data' is set on line 139 of the same class. I would propose inserting the following code on line 302, just after the if (scriptData)
if (scriptData)
{
if (!Directory.Exists(data)) { Directory.CreateDirectory(data); }
}

I have added this in my copy of the code, but I cannot upload changesets.

wrote Nov 24, 2008 at 5:23 PM

wrote Nov 24, 2008 at 5:23 PM

wrote Feb 14, 2013 at 7:14 PM