VB.NET - Running script in selected path Programming Software Development by blivori …Dim pyScript As String = Path.Combine(Directory.GetCurrentDirectory, "pdfmerge.py") Dim pyLocation As String = Path.Combine(dlgFolder.…SelectedPath, "pdfmerge.py") System.IO.File.Copy(CopyFile, CopyLocation, True) … VB.NET - WaitForExit() Runtime Exception Error Programming Software Development by blivori ….SelectedPath Dim pyLocationDel As String = Path.Combine(dlgFolder.SelectedPath, "pdfmerge.py") Directory.SetCurrentDirectory(dlgFolder.SelectedPath) myProcess.Start(pyLocationDel) myProcess… Re: How to read .pdf file..? Programming Web Development by R0bb0b [URL="http://www.pdflib.com/pdflib-cookbook/pdf-import/starter-pdfmerge/php-starter-pdfmerge/"]http://www.pdflib.com/pdflib-cookbook/pdf-import/starter-pdfmerge/php-starter-pdfmerge/[/URL] [URL="http://us2.php.net/manual/en/function.pdf-fit-pdi-page.php"]http://us2.php.net/manual/en/function.pdf-fit-pdi-page.php[/URL] Re: VB.NET - Running script in selected path Programming Software Development by Reverend Jim Does this work? [code] My.Computer.FileSystem.CurrentDirectory = dlgFolder.SelectedPath [/code] Re: VB.NET - WaitForExit() Runtime Exception Error Programming Software Development by lolafuertes Maybe you need to change your code like [CODE] Dim returnedProcess = myProcess.Start(pyLocationDel) returnedProcess.WaitForExit() [/CODE] See [URL="http://msdn.microsoft.com/en-en/library/53ezey2s(v=VS.80).aspx"]here[/URL] for reference Hope this helps