Hi,
I'm trying to make a simple 'utilities' application, just to launch some .bat / .cmd and other files quickly.
The application will be stored on a USB and there will be a folder in the same location called 'Commands'.
However, the USB comes up as different drive letters on different machines, so I need a way around this.
I used Dim directory As String = IO.Path.GetFullPath("Commands") and this works, I get the drive letter and commands letter, for example E:\Utilities\Commands
However, when I combine it with the System.Diagnostics.Process.Start it doesn't work...
As far as I know, all I need to do is System.Diagnostics.Process.Start(directory + "command-name.cmd") and it will open E:\Utilities\Commands\Command-Name.CMD
However I've getting a 'file not found error' when I click on the button.
Thanks!
Attachment 99529
I'm trying to make a simple 'utilities' application, just to launch some .bat / .cmd and other files quickly.
The application will be stored on a USB and there will be a folder in the same location called 'Commands'.
However, the USB comes up as different drive letters on different machines, so I need a way around this.
I used Dim directory As String = IO.Path.GetFullPath("Commands") and this works, I get the drive letter and commands letter, for example E:\Utilities\Commands
However, when I combine it with the System.Diagnostics.Process.Start it doesn't work...
As far as I know, all I need to do is System.Diagnostics.Process.Start(directory + "command-name.cmd") and it will open E:\Utilities\Commands\Command-Name.CMD
However I've getting a 'file not found error' when I click on the button.
Thanks!
Attachment 99529