Search results for query: *

  • Users: MJCM
  • Order by date
  1. M

    Question Wake up my NAS Question

    Oke I have re-written the Writer to this. Try Dim writer As New IO.StreamWriter(driveLetter & tempfile, False) writer.Write("dummy file") writer.Close() Console.WriteLine("File created") Catch ex...
  2. M

    Question Wake up my NAS Question

    I now have done this. Not very elegant (I must admit) and if someone knows a better trick please let me know, but after running this the NAS is alive. Using sw As StreamWriter = New StreamWriter(driveLetter & tempfile, False) While x <> 10000000 sw.Write("Dummy File") x += 1 End While...
  3. M

    Question Wake up my NAS Question

    Nope it doesn't work. After Running, NAS is still asleep, and no error message. Code is now this Using sw As StreamWriter = New StreamWriter(driveLetter & tempfile, False) sw.Write("Dummy File") sw.Close() Catch ex2 As Exception...
  4. M

    Question Wake up my NAS Question

    It seems to work ;) Now have to wait another 10 minutes (for the drives to go to sleep again) to test again ;)
  5. M

    Question Wake up my NAS Question

    Thx, so an extra catch in the Using block ! Will try that and report back.
  6. M

    Question Wake up my NAS Question

    Hi Guys, I have a small problem and I have no idea how to fix it. I am copying files from time to time to my NAS (drive: Y:\) via Console Application which I want to Schedule. My NAS sometimes goes to sleep (HDD stop spinning) after a period of not using it. And when I try to copy files and...
  7. M

    Secure File Delete Question

    Hi, thx for your answer. Encryption option is not an option (I think, unless you can explain it to me further), because i am deleting Music files and Exe. So what I can do is with a loop and streamwriter recreate the file (and fill it with zero's and do that several times) It will be an app...
  8. M

    Secure File Delete Question

    Hi, I am working on a .Net application, the application use System.IO.File.Delete method to delete files, but those deleted files can be restored through special "undelete software". Is there a way around this ?? I know you can buy "eraser" utils, but i want to handle this from the program...
  9. M

    Byte Array to String - Encoding question

    Hi, if I do it this way, the sb.tostring, will fill up ith (0,0,0,32,166 etc etc etc), but i really want the ASCII values. Dim sb As New System.Text.StringBuilder(bytes.Length * 4) For Each b As Byte In bytes sb.Append(b.ToString()) sb.Append(","c)...
  10. M

    Byte Array to String - Encoding question

    JOHNH, i hope you can help me with this one ?? I tried it with another binary file (a normal zip file) and then text-4 comes up as PK(and then (8 bits) 3 4 10) and thats it. The file i am trying the open starts with (8 Bits) 0 0 0 32 102 etc.etc.etc. (But on this one, the text-4 keeps coming...
  11. M

    Byte Array to String - Encoding question

    I debug with F8 (Step into). If I stop at Return Text, text-4 are empty If i stop at after output = ConvertByteArrayToString(bytes), output is also empty ! I have set text-4 and output in Watch (and they keep coming up empty)
  12. M

    Byte Array to String - Encoding question

    Hi John, thanks for the piece of code, but if i go through the debugger, the values of text (till text4) keep coming up empty. It prints the file on screen, but i want to do some search and replace on the file before i print it. And that is why i want the string. If I add the following code...
  13. M

    Help with console application.. plz

    What JCMILHINNEY says, is completly correct, these kind of solutions can be programmed in less then 5 minutes (10 if you use the internet. I will give just a little help with the Average and the Maximum. !! The numbers (nr1, nr2 and nr3 you get with console.readline Dim nums() As...
  14. M

    Two Short Questions (maybe long answers) binary search

    Cjard, do you have mp3's stored on your Pc ?? If yes, then download Itunes and convert them. there even other programs to convert them like http://www.dbpoweramp.com/dmc.htm. That's the easiest way, else use edonkey or emule. I am not able to use any of these programs because of my slow...
  15. M

    Two Short Questions (maybe long answers) binary search

    Cjard, to upload the files is a little bit difficult, because i am connected via a Modem Line, and you know how slow these are. These are just MP3's converted with iTunes to M4a (all are 128 Kbits). It seems that the info is located depending on the file size (but i am not exactly sure.)...
  16. M

    Two Short Questions (maybe long answers) binary search

    Hi thanks, but about the tags, i will give you some examples (results gathered with winhex by the way) This is were Nam is found (Title of Song) in different m4a file sizes ! File Size Page Offset 2069204 40 5c53 5032775 65...
  17. M

    how to shutdown/restart/standby windows

    Shutdown without using Shutdown.exe Hi, here is a sample i have found on the net about shutting down the pc without the help of Shutdown.exe !! Regards MJCM
  18. M

    Check if web server is up when checking for updates

    Hi Blake, i always use this function. It was written for vb 2003 but I never tried it on vs 2005. Regards MJCM Imports System.Net Imports System.Net.WebRequest Imports System.Net.WebResponse #Region " Is Connection Available" Public Function IsConnectionAvailable() As Boolean '...
  19. M

    Byte Array to String - Encoding question

    I have the following piece of code to convert a Byte Array to a String, but there is something going wrong with the encoding !! Sub Main() Dim fs As FileStream ' file.bin is a binary file ! fs = New FileStream("d:\file.bin", FileMode.Open, FileAccess.Read) Dim bytes(fs.Length) As Byte...
  20. M

    Two Short Questions (maybe long answers) binary search

    Hi, thanks for your answers, just a remark on your answers on question 2. The M4a file (is just a Itunes encoded file) I was thinking if it is possible to convert the Byte Array to a String array, and then joining them to a another string array. For example Byte Array contains 65, 82 , 84...
Back
Top