Results 1 to 2 of 2

Thread: BATCH Files

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    England
    Posts
    312

    BATCH Files

    right, here is my dilemma

    i wanna use the RENAME command to rename a bunch o files, the only problem is, it has to put in a recurringly differant number in the filename to all other files renamed before it, par example...

    The ORIGONAL Files
    Tennis.jpg
    mad crazy summe rin las vegas.avi
    fun fun fun.game
    new text document.txt
    even funner game.funnergame


    I would like to change these to

    The New files AFTER the BATCH file is run

    file - 1.jpg
    file - 2.avi
    file - 3.game
    file - 4.txt
    file - 5.funnergame


    So you see, i DONT want to change the extensioon, only the first bit, i have worled thius out already, the only bit i cant do is get it to write the number of the files (aka, 1 2 3 4 5 in each differant file,w ithout running a massive GOTO and IF batch file

    Im pretty sure this can be done with 1 line, thanx all

  2. #2
    jim mcnamara
    Guest
    Write some QBASIC, or PowerBASIC code that generates the file names. Then have it write a .BAT file and execute it.


    MYPBCODE.EXE f1 f2 f3 f4 f5
    MYBAT.BAT

Posting Permissions

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



Click Here to Expand Forum to Full Width