Results 1 to 6 of 6

Thread: [2005] Help me figure out what to do

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    3

    [2005] Help me figure out what to do

    Ok, I am trying to write a program, but I am really not sure how to do it. I have taken a class on vb and this is really the first attempt at doing something with it. Anyway, I am trying to write a program that will let me select a group of files and rename them. I want the naming to be based off of 3 lists of keywords that I put together. I want to be able to pick the number of keywords I use from each list. So say there are 100 keywords in each list, I could say 2 from the first, 1 from the second, and 2 from the third and get a file that has 5 words in it and the extension. I know this probably isn't too difficult, but it is a little out of my range at the moment. That being said, I am turning to people I think can help. So if you can give me any help, even just a nudge in the right direction, I would appreciate it a whole lot. Thanks.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2005] Help me figure out what to do

    Welcome to the forums.

    Give me an example of what you are trying to do.

    Lets say I have these three files:

    goldengod420.txt
    hack.txt
    vbf.txt

    Now, I want to rename all three of them. In terms of your specifications, what do I do next?

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    3

    Re: [2005] Help me figure out what to do

    Ok, let me try to be more clear.....

    Lets say I have the following files I want to be able to select all 3 or however many are in the directory

    1.txt
    2.txt
    3.txt

    and I have 3 lists of keywords(say a list of adjectives, nouns, and verbs) that I want to randomly pull the keyword out to rename a file. Then I can define how many keywords I want from each list. Say I want 1 from each... it would select one of the keywords from each list and I would get a filename:

    (keyword 1) (keyword 2) (keyword 3).txt

    randomly so I have different names for all 3 of the filenames... I would also like to be able to do more than one and get something like follows if I wanted 3 of the first keywords, 1 of the second, and 2 if the third:

    (keyword 1)(keyword 1)(keyword 1)(keyword 2)(keyword 3)(keyword 3).txt

    If you have any insight on how I would do this, I would appreciate it a lot. Thanks

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    3

    Re: [2005] Help me figure out what to do

    nothing huh? nobody here knows how to set this up?

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: [2005] Help me figure out what to do

    The problem is that you're asking us how to implement a multistage process without any indication that you have any idea at all. The first step in any project is to break it down into its components, then look at implementing each in its own right. For instance, do you even know how to rename a file? If so then where's your implementation of that part? If not then that would be a topic for one thread. Don't ask us how to build a house or you'll get no takers. Ask us how to pour concrete, cut wood and lay bricks, each in a different thread. It's then for you to combine the skills you gain and complete the project.

  6. #6
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,754

    Re: [2005] Help me figure out what to do

    Quote Originally Posted by goldengod420
    ... I have taken a class on vb and this is really the first attempt at doing something with it...
    Does that really happen? I mean taking a class in vb without actually doing code.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

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