Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. lbaker78

    Monitoring drive / folder writes...

    That's given me some food for thought! Thanks!
  2. lbaker78

    Monitoring drive / folder writes...

    Hi All, Is there anyway of monitoring disk activity in a particular folder? Basically, I have a folder and I want to be able to record the file name of every file that is written to this folder or modified within the folder, in real time. Can this be done in VB? TIA :)
  3. lbaker78

    Weird Dir$() behaviour...

    LOL!! :D And nope, the file doesnt exist in the working directory! :o That's gonna make me chuckle all day now.... :)
  4. lbaker78

    Weird Dir$() behaviour...

    Aha! Thanks GMMastros, I have only just started using the FSO, so had no idea you could do that! :) But PCLewis - I am now REALLY confused as to what Dir$() is doing! If I replace the incorrect file name with some other random text (ie - blahblah.mp3) it works correctly even tho its basically...
  5. lbaker78

    Weird Dir$() behaviour...

    OK... so I got it working by comparing the Dir$() result to the original text line (if its valid it will return the file name without the full path, so its different to the line of text but if it is a non existant file it returns the string again so the comparison is true and jumps to the else...
  6. lbaker78

    Weird Dir$() behaviour...

    lol, yes I suppose that would be useful...Here it is: Dim Trackname As String Dim fso, TextStream As Object Set fso = CreateObject("Scripting.FileSystemObject") Set TextStream = fso.OpenTextFile("c:\nowplaying.m3u") Trackname = TextStream.readline If Dir$(Trackname) <> ""...
  7. lbaker78

    Weird Dir$() behaviour...

    Hi All, Am trying to check if a file exists using Dir$(filenamehere) and this works fine when I pass a filename to it by typign it in manually or even via a variable. However, if I read the filename from a text file using Textstream.Readline, it ALWAYS says the file exists, even when it...
  8. lbaker78

    Can I make windows Hibernate from VB?

    BigTimmin, I hadnt thought of that! hehe that makes my simple app even more simple! :) Thanks!
  9. lbaker78

    Can I make windows Hibernate from VB?

    Genius! Works a treat, thanks Hypetia. :)
  10. lbaker78

    Can I make windows Hibernate from VB?

    Hi All, I am writing a very simple app that will shut my laptop down when the power is unplugged. I am using the Sysinfo Active X control v6 to monitor the status every 10 secs via a timer, but I want the laptop to enter Hibernate instead of shutdown (shell"shutdown -s") but can't seem to find...
  11. lbaker78

    VB and Database Place Holders

    Thanks Guys! Much aprreciated! :)
  12. lbaker78

    VB and Database Place Holders

    bjd4jc - thats exactly the sort of thing I want to avoid! :) - in this instance, curfile is created by the app, but as it just pulls up a filename, that file name could contain all sorts of nasties!
  13. lbaker78

    VB and Database Place Holders

    Like this? CommandText = "SELECT * FROM library WHERE URL = ''" & curfile & "'';" That doesnt seem to work either...
  14. lbaker78

    VB and Database Place Holders

    Hi All, I am trying to write some info to an Access Db, it all works fine until the data it's adding contains a ' (single apostrophe!). It then bombs out because now the command line is fragmented. I know in perl (and other languages I believe) you can use place holders to get around this...
  15. lbaker78

    VB6 and MS Access - why can I only add 12 records?

    Thankyou Bjd4Jc! you have solved it... I am going to stand in the corner with the dunce hat on! :$ The URL field was too short in the DB, I had assumed Access would allow it to be 255 (as that's the maximum), but completely forgot I had to actually define that value myself! doh! Thanks again! :)
  16. lbaker78

    VB6 and MS Access - why can I only add 12 records?

    Yes you are quite right Bjd4jc, it is the line: rstRecordSet!URL = curfile That is giving the error!
  17. lbaker78

    VB6 and MS Access - why can I only add 12 records?

    Hi all, I am a n00bi3 VB6 programmer and have written (and/or borrowed!) the following code, it runs fine for the first 12 records it writes to the DB, but after that I get an error saying: Run-Time error '-2147217887 (80040e21)': Multiple-step operation genreated errors. Check each status...

Part and Inventory Search

Back
Top