hexagon logo

VB.NET Open Pcdmis with selected program file

I am trying to write an application that will organize our programs by customer. I have everything written and complete but I have one issue when I try to open pcdmis with the selected file loaded, depending on what method i'm using at the time i get the following results

1. Pcdmis opens but the program file doesn't
2. pcdmis opens and brings up the new program dialog box with the program name list in the first textbox
3. my application crashes saying file not found.

I have done this numerous times with other applications and nothing seems to work.

I have tried system.diagnostics.process.start, I have tried the shell command it just doesn't seem to work. It does work if I double click the program file in the explorer app. I have seen other programs similar to this but they don't have source code available. Has any one got this to work in vb.net(not vbscript)? I'm starting to get frustrated as I have tried 36 different ways as of right now. Taking a break and hope some one will have some insight.
Parents
  • I can't remember all the different things i have tried but the last two where this.

    fname = "Y:\" + Label1.Text + "\" + ListBox1.SelectedItem
            Dim cmstart As String
            cmstart = "C:\Program Files (x86)\WAI\PC-DMIS 2012 MR1 (Release)\PCDLRN.exe""" + """" + fname
            Start(cmstart)
    


    fname = "Y:\" + Label1.Text + "\" + ListBox1.SelectedItem
            Dim cmstart As String
            cmstart = "C:\Program Files (x86)\WAI\PC-DMIS 2012 MR1 (Release)\PCDLRN.exe""" + """" + fname
            Shell(cmstart)
    


    I have seen the other post and have tried code similiar to what you have. The one question I have is are you using visual studio? If so do you have to have a import command to use the pcdmis commands like what you have?


    Edit: What is the "CMM1" for?
Reply
  • I can't remember all the different things i have tried but the last two where this.

    fname = "Y:\" + Label1.Text + "\" + ListBox1.SelectedItem
            Dim cmstart As String
            cmstart = "C:\Program Files (x86)\WAI\PC-DMIS 2012 MR1 (Release)\PCDLRN.exe""" + """" + fname
            Start(cmstart)
    


    fname = "Y:\" + Label1.Text + "\" + ListBox1.SelectedItem
            Dim cmstart As String
            cmstart = "C:\Program Files (x86)\WAI\PC-DMIS 2012 MR1 (Release)\PCDLRN.exe""" + """" + fname
            Shell(cmstart)
    


    I have seen the other post and have tried code similiar to what you have. The one question I have is are you using visual studio? If so do you have to have a import command to use the pcdmis commands like what you have?


    Edit: What is the "CMM1" for?
Children
No Data