Saved Bookmarks
| 1. |
Solve : HELP!!!!!!!!!? |
|
Answer» Quote from: rhoads on April 29, 2008, 08:17:42 AM last nite i got a call back from a friend of a friend lol, who i tried to contact to help out with this and he told me that i didnt need to use a for loop to do this.........that i could accomplish the same thing by using the set command..... I'd appreciate it if you post your friend of a friend's solution on here. no i just spoke to him on the phone....he lives in diff state and sort of explained what i had to do and that i was trying to FIGURE out the for command and he just told me that set command could just be used.......i ALMOST CRIED lol, j/k....but seriously i thought i had to use for and that is why i have been trying to figure this out for so long.Well, I am very surprised that your friend's friend thinks there is an easy way to get three items out of %1 just using SET, and I believe he is probably wrong. Without proof of his method then it is just something a guy told you on the phone. On the other hand, my batch file actually works. i dont KNOW, he has a bachelors in computer science....i dont know him that well but he sounded confident, lol........he said i could use set after i told him i could only use %1 and that i can only use 2 EVars (Fname and Lname) in the batch file.....im not sure lolHey, if your friend is right, we might all learn something (as much as I try to avoid that.. )LOL yes but UNFORTUNATELY like i said he is out of state and i will probably never know....i worked on this for a couple hours last nite to no avail....then again i am a newbie.....i set fname=%1 but then to get lname and dept to work i dont knowQuote from: rhoads on April 30, 2008, 06:38:14 AM i set fname=%1 but then to get lname and dept to work i dont know You said you were allowed only 2 "evars" (whatever they are, I presume you meant variables) and to get Fname, Lname and Dept you will need 3. Are you sure you have posted the assignment exactly as you were given it? I am sure, i rechecked my original post. I am thinking that obviously set is not the only command i need, i might not need for but just set i dont think will do it.....im losthave you got your assignment in writing? How do you know what it is you are supposed to be doing? Is it a work thing? A school thing? |
|