MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Naoki
Reged: 11/10/09
Posts: 1998
Loc: United Kingdom
Send PM
Command line scripting
03/24/10 10:34 PM


Yeah, basicly I'm trying to automate a proccess which involves file moving, renaming, update...ect.

I'm having difficulty in that i can't get some syntaxes right and i'm not sure of how to do things. Maybe it would be better in Visual Basic, but my knowledge for that is gone.

What it needs to do is this:
  • Update source code via SVN (Already compiled a script)
  • Compile the resulting C++ into an exe (Already compiled)
  • Change the directory of the root drive.
  • Rename the old exe file using the data in the exe version
  • Change the directory into the "Old" folder
  • Create a new directory based on the filename of the exe
  • Move the old exe file to the newly created folder
  • Move the new compiled exe to the root drive
  • End script

    So far i have:


    Code:

    C:\~~\TortoiseProc.exe /command:update /path:d:\Source\src /closeonend:1 
    makeexe32.bat
    cd D:\
    ren program.exe (code?).exe
    cd D:\Old
    md (code?)
    move D:\****.exe D:\Old\****\ (code syntax wrong?)
    move D:\Source\program.exe D:\ (code syntax wrong?)
    exit



    Any help? Would making a VBasic program be better? If so what code?


    ----
    On a quest for Digital 573 and Dancing Stage EuroMix 2

    By gods I've found it!







  • Entire thread
    Subject Posted by Posted on
    * Command line scripting Naoki 03/24/10 10:34 PM
    . * Re: Command line scripting lharms  03/28/10 09:07 AM
    . * Re: Command line scripting Naoki  03/28/10 02:36 PM
    . * Re: Command line scripting lharms  03/28/10 05:32 PM
    . * Re: Command line scripting Naoki  03/28/10 06:15 PM
    . * Re: Command line scripting keshbach1  03/27/10 12:00 AM

    Extra information Permissions
    Moderator:  Pi 
    0 registered and 4 anonymous users are browsing this forum.
    You cannot start new topics
    You cannot reply to topics
    HTML is enabled
    UBBCode is enabled
    Thread views: 3683