Publish/Deploy Visual Basic 2010 project (.exe file for other PCs)
<p>Hello I have developed a simple application that uses an Access database. In my application my provider and datafile paths for the DB are</p>

<pre><code>Dim provider As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source ="
Dim dataFile As String = "C:\Users\blanca\Desktop\Serna Impresos 2016\Serna Impresos 2016\Serna Impresos 2016\bin\Debug\SIDB.accdb"
Dim connString As String = provider &amp; dataFile
</code></pre>

<p>I know that whenever I download the installation files on another computer it will not work because I used explicit path definition [C:.....\file.accdb] which refers to my own local files. 
How do I use a working directory path? What path should I use for it to work on different computers (not the one used to develop)</p>

<p>The error message is this...
<a href="http://i.stack.imgur.com/0750X.jpg" rel="nofollow">clic for image</a></p>

<p>Changed this and still doesn't work </p>

<pre><code>Dim provider As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source ="
Dim dataFile As String = "\SIDB.accdb"
Dim startup As String = Application.StartupPath
Dim connString As String = provider &amp; startup &amp; dataFile
</code></pre>