i am trying to run a .vbs script that is not in the same directory as the program is in
Dim CustomInstalaionPath As String = "C:\Users\user\Desktop\Test"
Process.Start(CustomInstalationPath + "/run.vbs")
the program is running in the normal directory for de-bugging
C:\Users\user\Documents\Visual Studio 2010\Projects…
i have tried loads of ways but nothing is successfully running it
any help would be awesome
thanks
You need to use the version of
Process.Startthat takes aProcessStartInfostructure.This will allow you to set the
WorkingDirectoryproperty, which is what you’re looking for.Something like:
Also see this question (for C# that uses the same class). If you check it out, make sure to add the
WorkingDirectoryproperty: