How to auto save filenames incrementally

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mumford68
    New Member
    • Oct 2011
    • 4

    #1

    How to auto save filenames incrementally

    Hello. I have played a little with Basic a long long time ago but no real programming experience. I am having some issues with the MFT of my hard drive and would like to see what changes occur if I could take up the space of the MFT not in use by saving a file, I was thinking something simle like the NOTEPAD.exe file with WINXP Home so that I can create a 0byte file and then increment several thousand or perhaps even a hundred thousand times.

    Basically I would like to create and save a 0byte file, I.E. save1.txt then save2.txt then save3.txt... save 100000.txt but I am not sure of the command to use to call up the a save command and how to execute it much less automatically increment the names.

    Any help is appreciated. I have spent some time Googling this but have not found anything for my specific issue.

    Take care,
    Mumford68
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Since you're using Windows, you can run javascript and vbscript natively. I would pick whichever one you're more comfortable with and find a tutorial on that. Alternatively, you could use a batch script.

    Comment

    • Mumford68
      New Member
      • Oct 2011
      • 4

      #3
      I apologize for not mentioning that a batch file would be perfect and is something I have searched for online as well as playing in DOS a bit however I don't know quite how to put it together. I think I would have a better chance of doing it myself if I could find out the command/file to use/call/pointto in WinXP Home.

      Thank you for the response,
      Mumford68

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        Basically, use a loop and copy the same file over and over using the counter in the name of the file.

        Comment

        • Mumford68
          New Member
          • Oct 2011
          • 4

          #5
          I can appreciate how simple it is. Unfortunately I have not been able to find out how to do that :) After looking through the help file in DOS and looking through the executable files in \windows\system 32 and searching the net I have not been able to find the files or commands that allow me to accomplish the simple feat which is why I have now resorted to this forum. I had noticed a few entries using VBasic and I think it was JAVA but required installing programs in addition to the already installed WinXp Home.

          I thought if I could find the command that the system uses to save files I could perhaps find the command to increment or loop as you mentioned but so far I have had no joy.

          If I could find a web site with specifics or someone can state the commands or procedures I need to accomplish this simple task I could go from there :)

          I've been playing around with it as a simple batch file but so far I am lost. I tried to use the CALL feature but that apparently is not intended to run programs but rather other batch files plus I do not know how to use a batch file to continually increment a saved file name.
          Last edited by Mumford68; Oct 20 '11, 12:19 AM. Reason: accidental early save

          Comment

          Working...