| 1. |
Solve : dir %userprofile% not working? |
|
Answer» Okay, so as part of college, we are learning DOS. As part of the notes, we are working with environment variables. Operating system is Windows XP, service pack 2, running on a virtual machine. Our notes quote us as being able to run the directory command with the %userprofile% as the target. The output from trying this command is as thus: Okay, so as part of college, we are learning dos. Quote Operating system is Windows XP This is not "DOS". Quote from: Salmon Trout on January 10, 2012, 12:21:45 PM This is not "DOS". Eventually you will change the world, one DOS confused person at a time. Until then, informing everyone is doing great things for your post count. Quote from: Raven19528 on January 10, 2012, 12:42:07 PM informing everyone is doing great things for your post count. As someone who used to be very fond of accusing all and sundry of boosting their post count, it is especially galling to be on the receiving end... Quote from: Salmon Trout on January 10, 2012, 12:45:52 PM it is especially galling to be on the receiving end... It's all in fun. One word describes it best though... "Karma" Quote from: Salmon Trout on January 10, 2012, 12:21:45 PM This is not "DOS". Joking aside, I don't think this is altogether a trivial bit of obsessive anality. A person starting out learning Windows NT family command scripting is not going to get the most focussed and useful help if they use a search engine for e.g. "DOS tips" or "DOS syntax" or "DOS batch help" or "DOS batch examples". Command.com and cmd.exe are very different. Coding is something where it is actually important to get things right. If the syudent is actually being told they are learning "DOS" it calls into question the quality of the teaching. Excellent point...i agree.I was going to point that out myself but couldn't be bothered. Quote from: Salmon Trout on January 10, 2012, 02:36:55 PM If the student is actually being told they are learning "DOS" it calls into question the quality of the teaching. And here's where the trouble really LIES. If the teacher is under the impression that Command.com and cmd.exe are the same as DOS, and then passes it along to the students, we have a case where ignorance breeds ignorance. This however may not be the case, as I have learned that the youth of today like to cut out "unneeded" letters, words, sentences, and PARAGRAPHS in multiple aspects of their lives (text translation is a full out brain exercise for me some days), so while the instructor may be passing along correct information, the students in their zeal to compartmentalize the information lump Command.com, cmd.exe, and DOS into one and the same in their own minds, because it fits easier. Unfortunately, ignorance breeds faster than knowledge in many cases because it is easier. All we can strive to do is educate correctly and HOPE that eventually, it makes a difference. Quote from: Salmon Trout on January 10, 2012, 12:21:45 PM This is not "DOS".Okay. We are learning to use a command line environment within windows XP. I just feel it easier to call it DOS and as such automatically referred to it as such. Quote from: BC_Programmer on January 10, 2012, 04:51:41 AM you need to use quotes. Thank you for being the only person in this thread to address the actual issue. I need to put quote marks around the %userprofiles% do I? I'll check that first opportunity I get. Quote from: BC_Programmer on January 10, 2012, 04:51:41 AM you need to use quotes. Once again, thanks. I've tested this on an XP computer and it does work - I've yet to get a chance to check this on the virtual machine that I was using, and will have to wait for Tuesday for that. Quote from: happy2pester on January 12, 2012, 06:58:44 AM Once again, thanks. I've tested this on an XP computer and it does work - I've yet to get a chance to check this on the virtual machine that I was using, and will have to wait for Tuesday for that.You think the outcome is going to be different? Quote from: Squashman on January 12, 2012, 11:53:54 AM You think the outcome is going to be different? I don't think it will be different, but I wish to double check. |
|