Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

beginner with a complex task

airwalkerairwalker Member Posts: 71
[b][red]This message was edited by airwalker at 2006-10-10 13:35:37[/red][/b][hr]
Hi, I have to create a batch file that does several things:

run an visual studio 2005 application (.sln)
the application itself takes 3 parameter

i. the folder where the input files are (C:DevelopmentDSGIX3)
ii. the extension of the input files (csv)
iii. the extension for the output files (txt)

After running the app, the batch file has to copy all the output files to
C:DevelopmentDSGIX3Out
This folder is already there.
and deleting the output files from
C:DevelopmentDSGIX3

I havnt got clue how to do this...any ideas....thanks in advance


Comments

  • blipblip Member Posts: 756
    [b][red]This message was edited by Moderator at 2006-10-10 19:0:13[/red][/b][hr]
    [code]app.sln %1 %2 %3
    REM ^ I don't know how it's supposed to be run, or which specific one to run.
    move/y %1*.%3 %1Out
    REM ^ I assume you're wanting to move the output files from X3 to
    REM X3Out rather than moving from the current directory.[/code]The batch file is passed the three arguments in the order you specified.


  • airwalkerairwalker Member Posts: 71
    thanks for your reply...could you please explain it to me in simple terms..im an absolute beginner to batch files, but is what you advising something like this

    [blue]start X3.sln %C:DevelopmentDSGIX3 %csv %txt
    move C:DevelopmentDSGIX3*.txt C:DevelopmentDSGIX3Out
    Delete C:DevelopmentDSG1X3*.txt[/blue]

    would this solve this task:

    run an visual studio 2005 application (X3.sln)
    the application itself takes 3 parameter

    i. the folder where the input files are (C:DevelopmentDSGIX3)
    ii. the extension of the input files (csv)
    iii. the extension for the output files (txt)

    After running the app, the batch file has to copy all the output files to
    C:DevelopmentDSGIX3Out
    This folder is already there.
    and deleting the output files from
    C:DevelopmentDSGIX3




Sign In or Register to comment.