I'm sorry, but Do Your Own Homework. Or at least make an attempt at it.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
I am sorry fry but that wasn't the answer I was looking for ;-)
Too bad. It's pretty obvious that this is your homework, and asking for help without showing any effort is not encouraged here. Post the code you've got so far, and we might be able to help you with it.
Thanks
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
No sweat. And glad it was obvious. It was supposed to be. ... I think it is presumptious of you to "assume" I have put in no effort. Remember what happens when you assume? "You make a donkey out of yourself" :cheesy:
OK, look buddy. We're simply not going to do your homework, and insulting us isn't going to make it go any better. If youhave been making an effort, you should at least be able to figure out a few of the steps. Tell us which part of the assignment you need help on, or don't understand. For example:
Using called procedures, either delete all files in H:\scripts, rename all files so that they have the extension .bak, or simply exit the program
You should have at least tried to do it. Post some of your attempts; it shows us that you actually want to get it done, and not simply let us do your homework.I am not doing any complex DB extraction or anything. Also the fact that you were "disguising" the fact that it was homework is annoying; when you say "Anyone want to take a crack at this," you're making it sound as if it's supposed to be a brainteaser forus to solve. But it's pretty easy to tell that it's your homework, so why not say so?
Not to be harsh or anything, and I'm happy to help you with a part that you're stuck on. But me (and everyone else) don't want you to get marked on something you didn't write.
Thanks.
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
I am on the road and do not have access to a compilier so forgive any obvious errors.
Several things I have to point out:Although this is shell scripting, it's certainly Windows, and not Linux. And since I'm running Linux/BSD, I can't test any modifications I make on the code, even if I could understand Windows shell scripting.
You don't need a compiler to run this code. COMMAND.EXE simply "interprets" the code, so there's no compilation necessary.
Since you may not get excessive help here in the Linux forum, you may want to ask a mod to move it for you to the appropriate forum (there's not one dedicated to Windows shell scripting, but I'm sure they know where to move it.)
ABOVE: it seems an emoticon jumped in there that is supposed to be CALL : DELETE (w/o the space)
This problem would go away if you used code tags. They're highly encouraged here, and to use them, you simply insert your code in between[code] and [/code]. And then your code will look nicely formatted, retaining indentation:
CALL:DELETE
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
Pick a moderator from here,
http://www.daniweb.com/techtalkforums/showgroups.php
that specializes in "software development", preferably one that's online for quicker response.
Private message them nicely, giving them the link to this thread, and asking which forum this should go in and if they could please move it for you.
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
I appreciate you comments on the code I am posting below....
Does it do what you want it to do? What kind of comments are you expecting?
And to prevent the :D's, use code tags. That will stop the :('s from happening.
WaltP
Posting Sage w/ dash of thyme
10,492 posts since May 2006
Reputation Points: 3,348
Solved Threads: 943