Click here to Skip to main content
15,893,814 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: licensing my vb.net application (online and offline) Pin
Eddy Vluggen11-Aug-14 7:15
professionalEddy Vluggen11-Aug-14 7:15 
QuestionLogitech G keyboard screens Pin
JR21210-Aug-14 4:37
JR21210-Aug-14 4:37 
AnswerRe: Logitech G keyboard screens Pin
Dave Kreskowiak10-Aug-14 5:04
mveDave Kreskowiak10-Aug-14 5:04 
GeneralRe: Logitech G keyboard screens Pin
JR21210-Aug-14 7:21
JR21210-Aug-14 7:21 
Questionvb.net Pin
Jyoti Padriya9-Aug-14 5:47
Jyoti Padriya9-Aug-14 5:47 
AnswerRe: vb.net Pin
Dave Kreskowiak9-Aug-14 6:20
mveDave Kreskowiak9-Aug-14 6:20 
QuestionRe: vb.net Pin
ZurdoDev15-Aug-14 8:17
professionalZurdoDev15-Aug-14 8:17 
QuestionProblem in passing arguments to cmd prompt from VB program Pin
Member 109935298-Aug-14 7:33
Member 109935298-Aug-14 7:33 
I'm a beginner at programming, so please bear with me as I explain what I would like to achieve.

I'm writing a very simple program using VB Express 2008. The program will simplify a CD burning process for an audio project that I'm working on. Basically, clicking a button on my form will start the command line version of the program CDBurnerXP[^]. A list of the command line arguments for CDBurnerXP can be found here[^].

I realize I could do this with a simple script, however I would like to do this from within a VB program because additional capabilities will be added to the program.

Here is the click event code for the Burn CD Button on my form:

VB
Private Sub ButtonBurnCD_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonBurnCD.Click

        ' New ProcessStartInfo created
        Dim p As New ProcessStartInfo

        ' Specify the location of the binary
        p.FileName = "C:\Program Files (x86)\CDBurnerXP\cdbxpcmd.exe"

        ' Use these arguments for the process
        p.Arguments = "--burn-audio" & "-device0" & "-tao" & "-close" & "-file:"C:\Users\Account\Desktop\FolderX\audio.mp3""

        ' Start the process
        Process.Start(p)

End Sub


Theoretically, this should burn the audio.mp3 file to cd. Unfortunately, all that happens is that the Command Prompt window briefly comes up with the name of the CD drive (i.e., the name of device0). I have checked that I'm using the right arguments by typing the following at the Command Prompt:

"C:\Program Files (x86)\CDBurnerXP\cdbxpcmd.exe" --burn-audio -device0 -tao -file:"C:\Users\Account\Desktop\FolderX\audio.mp3"

This does work, and the file gets burned to CD.

I'm pretty sure the problem lies in the p.Arguments line, but I'm not sure what I'm doing wrong. Any ideas?
AnswerRe: Problem in passing arguments to cmd prompt from VB program Pin
Wombaticus8-Aug-14 8:27
Wombaticus8-Aug-14 8:27 
GeneralRe: Problem in passing arguments to cmd prompt from VB program Pin
Member 109935298-Aug-14 23:34
Member 109935298-Aug-14 23:34 
AnswerRe: Problem in passing arguments to cmd prompt from VB program Pin
Mike Meinz5-Sep-14 7:50
Mike Meinz5-Sep-14 7:50 
QuestionTorrent dowloader in VB.NET Pin
Member 110001467-Aug-14 23:48
Member 110001467-Aug-14 23:48 
AnswerRe: Torrent dowloader in VB.NET Pin
Dave Kreskowiak8-Aug-14 4:24
mveDave Kreskowiak8-Aug-14 4:24 
AnswerRe: Torrent dowloader in VB.NET Pin
ZurdoDev15-Aug-14 8:18
professionalZurdoDev15-Aug-14 8:18 
QuestionProblem instantiating FileSystemWatcher in Windows Service Pin
Member 109911324-Aug-14 9:24
Member 109911324-Aug-14 9:24 
AnswerRe: Problem instantiating FileSystemWatcher in Windows Service Pin
David Mujica4-Aug-14 10:56
David Mujica4-Aug-14 10:56 
GeneralRe: Problem instantiating FileSystemWatcher in Windows Service Pin
Member 109911324-Aug-14 11:04
Member 109911324-Aug-14 11:04 
AnswerRe: Problem instantiating FileSystemWatcher in Windows Service Pin
Bernhard Hiller4-Aug-14 21:04
Bernhard Hiller4-Aug-14 21:04 
GeneralRe: Problem instantiating FileSystemWatcher in Windows Service Pin
Member 109911325-Aug-14 2:55
Member 109911325-Aug-14 2:55 
GeneralRe: Problem instantiating FileSystemWatcher in Windows Service Pin
Bernhard Hiller5-Aug-14 20:09
Bernhard Hiller5-Aug-14 20:09 
QuestionRegular Expression in VBS Pin
Member 88781863-Aug-14 19:36
Member 88781863-Aug-14 19:36 
GeneralRe: Regular Expression in VBS Pin
Tim Carmichael4-Aug-14 2:43
Tim Carmichael4-Aug-14 2:43 
QuestionRe: Regular Expression in VBS Pin
ZurdoDev15-Aug-14 8:19
professionalZurdoDev15-Aug-14 8:19 
QuestionProblem setting a value in a textbox from another form Pin
dilkonika2-Aug-14 6:08
dilkonika2-Aug-14 6:08 
AnswerRe: Problem setting a value in a textbox from another form Pin
Richard Andrew x642-Aug-14 16:14
professionalRichard Andrew x642-Aug-14 16:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.