Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: batch file beginner..please help  (Read 2055 times)

0 Members and 1 Guest are viewing this topic.

Mark_Stewart

  • Guest
batch file beginner..please help
« on: October 10, 2006, 07:22:59 AM »
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:\Development\DSGI\X3)
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:\Development\DSGI\X3\Out
This folder is already there.
and deleting the output files from
C:\Development\DSGI\X3

I havnt got clue how to do this...any ideas....thanks in advance
« Last Edit: October 10, 2006, 08:08:20 AM by Mark_Stewart »

ghostdog74



    Specialist

    Thanked: 27
    Re: batch file beginner..please help
    « Reply #1 on: October 10, 2006, 09:43:33 AM »
    what have you done so far?

    QBasicMac

    • Guest
    Re: batch file beginner..please help
    « Reply #2 on: October 10, 2006, 12:08:35 PM »
    You should first ensure that there are no TXT files that you want to remain in the source directory. Then run the application. Then simply do

    move C:\Development\DSGI\X3\*.txt C:\Development\DSGI\X3\Out\

    Mac

    Mark_Stewart

    • Guest
    Re: batch file beginner..please help
    « Reply #3 on: October 11, 2006, 02:31:15 AM »
    well I havnt got a clue, but this is what I've come up with:

    start X3.sln %C:\Development\DSGI\X3 %csv %txt
    move C:\Development\DSGI\X3\*.txt C:\Development\DSGI\X3\Out\
    Delete C:\Development\DSG1\X3\*.txt

    would this work???? please advive any modifications



    « Last Edit: October 11, 2006, 02:43:44 AM by Mark_Stewart »