Jump to content

At0mic

Member
  • Posts

    282
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by At0mic

  1. I tend to determine a users knowledge depening on their question. If a newb asks a simple question, I give them a simple answer that a newb can understand. If a more advanced user askes a question, I realize this and ansewer in a more advanced maner. The key is to get onto the persons wavelength and answer accordingly. Your right though, too many people over estimate a persons knowledge and give advanced solutions to simple problems.
  2. Thanks everyone for your help, especially to jftuga Did I miss something?
  3. Thanks for the help guys, I've almost finnished. Just one more thing though, how can I SET the output of the FINDSTR command to a variable instead of to a txt file? I've tried the following but it sets the actual command as the variable instead: SET total="findstr "[0-9]" total.txt"
  4. Thats really sad, I loved watching his shows. He's such a great guy and he'll be missed by many. My heart goes out to his family and close friends.
  5. obviously the PS3 will outsell the 360 and be the most popular games console, just like the PS2 and PS1 before it. However, I personally much prefer the 360
  6. Yes use Munge.exe. Its part of the NT4 Resource Kit. You can search for it using google, I used it a few days ago for a batch file and it works very well. Just create a txt file containing the current string and the required string separated by a space. You can sounded the string with " " as it works with any quoted text so your expression should work. MUNGE strings.txt -l -t file.txt strings.txt contains your search strings and file.txt is the file you want to edit
  7. Your solution work's thank you very much. However, a total of 7 lines match the string: 97727</TD> 1806</TD> 32860</TD> 86981</TD> 492</TD> 8028</TD> 184708</TD> I modified the code to add a line number and then I added another line to use the line number as a string: findstr /b /n "[0-9].*</TD>" Lobby.htm > temp.txt echo Page count for the WHSE Lobby printer > total.txt findstr "140" temp.txt >> total.txt del temp.txt This resulted in the following: Page count for the WHSE Lobby printer 140:184708</TD> I wasn't very happy with having "140:" and "</TD>" so I did a search using google and found Munge.exe from the NT4 Resource Kit which can replace strings. I tried it out and it worked perfectly. Here's the new code: findstr /b /n "[0-9].*</TD>" Lobby.htm > temp.txt echo Page count for the WHSE Lobby printer > total.txt findstr "140" temp.txt >> total.txt MUNGE munge.txt -l -t total.txt del temp.txt munge.txt contains the following: "140:" "" "</TD>" "" When I run the script, I get the following which I'm very happy with: Page count for the WHSE Lobby printer 184708 I've got another 6 html files to retrive some numbers from so I'll continue with it on Monday. Some of them will require some numbers to be added up so I'll try a command line calculator.
  8. I want to search for a string in an html file. The line I need contains a number which constantly changes. There isn't anything else on this line which is unique. Therefore, I would have to search for the line above. Here's is a small part of the html document: Total </TD> <TD COLSPAN="3" HEADERS="Total"> 184394</TD> </TR> </TABLE> The number "184394" is the information I need but its a different number each time the webpage is saved (I'm using Downloader.exe to save it) The first problem, is if I search for "TD COLSPAN=" it finds 3 instances in the file. I cant specify a longer string becasue the quotation marks mess it up but maybe there is a way around this? Here's the code I have so far: downloader.exe -download http://192.168.0.94/m_s_cnt.htm lobby.htm FIND "TD COLSPAN" "lobby.htm" >>lobby.text How can I grab the next line down from the search string "TD COLSPAN="? Ive checked all the switches for both the Find and Findstr commands, but I cant see anything useful. I dont know enough about scripting to be able to work it out. Here's the full HTML file if anyones interested (its the page counter from a network printer) lobby.htm
  9. XP for my desktop, 2003 for my server. That question is about as stupid as asking "F1 Racing car or off-road truck" It depends what you need it for!
  10. are you planning to open your own shop or something?
  11. I just opened up MSN and it was in linear mode as well. I didn't change anything. I've just set it back to standard. Weird.
  12. I always upgrade my harddrives to Dynamic. Then I can create as many volumes as I like without having to worry about primary, extended and logical drives. Here's a microsoft artical about it http://support.microsoft.com/kb/309044/
  13. I tried Vista beta 2 and I have to say I don't like it at all. It just doesn't feel right. I know its only beta, however, I've been using XP since before it was beta and I've always liked it. When XP became beta 2 I felt happy enough to use it as my main OS. I even bought XP as soon as it came out. I doubt I'll ever feel that way about Vista. I'll be forced into buying Vista though because games will eventually require DirectX 10
  14. Gurgelmeyer’s Unofficial Windows 2000 SP5 Build 5.1.2195 It can be integrated like a normal service pack using nlite
  15. "Do you like Java?" is a question only a Java programmer should be able to answer. Those of us who don't program in java, only get to see the finished program and whether or not it loads quickly. This is no basis for assessing whether or not a programming language is any good. I'm currently learning PHP and I would say that PHP is a very good language. Before I started learning PHP however, it would have been very very unfair to assess whether or not its a good programming language - regardless of how many PHP pages I had seen. I've seen a lot of Java programs. Some I like, some I don't. However, I don't know the language so its impossible for me to say if its a good language or not. In the same way, I think that nlite is a seriously good program and so do many other people. If I thought a load of other .net programs were very good as well, thats still no basis for saying .net it a good language. .net could be the worst programming language in the world for all I know. All I see is the finished programs. I get the impression that a lot of people have tried a lot of Java programs that they don't like and using that as a basis for jugging the Java programming language itself.
  16. Of course it does that. Its normal for an OS to call its hardrive C:
  17. Its a usb webcam I just installed windows xp with my original disk and my webcam installed perfectly with the manufactures driver. However, during the install, I noticed that one of the devices it detected was "usb audio" which is one of the things I did previously remove from my last few disks. I'm guessing it requires usb audio support for the cams built in mic. Next time, I'll keep usb audio support and see what happens.
  18. I made a new nlite disk and kept the camera drivers. I also made another nlite disk but this time I kept netmeeting. Neither disk alow me to install my webcam Looks like Im going to have to make another nlite disk and choose to remove fewer options.
  19. I've just nlited my Windows XP Pro and now I cant install my webcam. Does anyone know which component did this so I can make a new nlite disk with the appropriate changes? I didn't remove Windows Image Aquisition. I did remove camera drivers but I'm trying to use the manufacturers drivers. Could the manufacturers drivers be trying to use a few files from the camera drivers I removed? Anyone got any ideas? Many thanks At0mic Last_Session.ini
  20. 1. Main computer (2.4GHz / 768Mb) 2. Download computer (Celeron 500 / 768Mb) which I leave on doing downloads all the time 3. A spare computer which I was recently given (Celeron 700MHz / 128Mb) - not sure what to do with it yet 4. Laptop (Pentium 266Mhz / 32Mb) which I dont use much 5. XBox (Celeron 700MHz / 64Mb) I used to have Linux on it but now I've installed the evox dash - not sure if this counts? 6. I probably have enough spare parts to build one or two more (I would have to steel some memory from my download computer)
  21. www.dvdshrink.org just tell dvdshrink you want your dvd shrunk to 700Mb and re-encode it. now just burn it to CD. It should be compatible with normal DVD players but the quality wont be much good. If you want good quality, then encode it as a 700Mb AVI file. But then it will only be compatible with devices that can play AVI files such as your computer. I suppose there might be some dvd players that can read AVI.
  22. i want to modify a php/mysql database for the small college I work for Its a database containing student infomation and what courses they are doing. The problem is, it only contains the course codes - not the actual names of the courses. Members of staff have to look up the code to see what course it is. I dont wish to edit every student becasue there's far to many. I tried the following PHP code which displays the word "hairdressing" if it finds course code 100410IC001: if ( $course_id == "100410IC001" ) { echo "hairdressing"; } else echo "course name not found"; some students are doing more than one course. Although the above code works if the student is doing one course, if they are doing multiple course, it displays the word "hairdressing for each course (even though they have different ID codes. doing it this way isn't very good anyway. I want to make use of MySQL so people can add more courses using a form. I added a new table to the MySQL database containg courses and theirs codes. I want it to look up the course id in my new table and display its course name. Ive been having problems doing this. Please can anybody give some advise on the best way to do this? Many thanks At0mic
  23. The complete idiots guide to grammar 'There's no room for 'of' In 'I could of been rich.' The correct word is have, You ignorant b***h.' 'Don't use 'their' with an 'i' When you mean 'they are', or 'there'. If you keep that s*** up, I'll dip your nethers in Nair.' 'A lot's not one word, Unless there are things being allotted. Keep using alot to mean 'many' And you'll end up garrotted.' 'If you don't know that excepted Means 'left out' or 'not included'; It will be widely accepted That your dumb a** is deluded.' 'You should say, 'I'm not well' Instead of, 'I don't feel good'. The medics might leave you to die, If you're misunderstood.' 'Many grammatical errors May be excused or forgotten; But I'll bitchslap your a** Next time you claim, 'It has been broughten!''
  24. just rename one of the computers to a name which doesn't exist
×
×
  • Create New...