Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2006
    Posts
    157

    Unanswered: Input/Output Files

    Hi: The program is running fine and it receive the input and output files from the batch. But is there any way i remove that batch file and put every thing in the shortcut
    Thanks.

    BATCH.BAT
    @echo off
    cing.exe %*

    Shortcut
    C:\REMITandNSF\batch.bat /in:c:\remitandnsf\New Import 033007.txt /out:c:\remitandnsf\IDTC demo and recon.sql

    Private Sub Form_Load()
    Dim myArgs() As String, x As Integer
    myArgs = Split(Command$, "/")
    If UBound(myArgs) <> 2 Then
    MsgBox "Invalid Command Line Parameters" & vbCrLf & "Expected Format: cing.exe /in:my infilename.extension /out:my "

    outfilename.extension ""
    Exit Sub
    End If
    For x = LBound(myArgs) To UBound(myArgs)
    If Mid(myArgs(x), 1, 3) = "in:" Then
    MsgBox "Input File Name=" & Mid(myArgs(x), 4, Len(myArgs(x)) - 3)
    ElseIf Mid(myArgs(x), 1, 4) = "out:" Then
    MsgBox "Output File Name=" & Mid(myArgs(x), 5, Len(myArgs(x)) - 4)
    End If
    Next
    End Sub

  2. #2
    Join Date
    Jun 2004
    Location
    Arizona, USA
    Posts
    1,848
    Yes.

    In the Shortcut 'Target' textbox:
    Code:
    "cing.exe"  "/in:c:\remitandnsf\New Import 033007.txt /out:c:\remitandnsf\IDTC demo and recon.sql"
    should work.
    Lou
    使大吃一惊
    "Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
    "I have my standards. They may be low, but I have them!" - Bette Middler
    "It's a book about a Spanish guy named Manual. You should read it." - Dilbert


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •