Search results for query: *

  1. D

    Question How to logoff multiple users logged on Windows Server

    Hi, I want make a Console Application in VB.NET which will logoff all (but not an Administrator) users connectend to Windows 2003 Server machine via RDP Connection. I wrote an application which is restarting Server machine, but when there're logged in users, Server got suspended. Code of my...
  2. D

    Issue with function which's read number from file

    hmm, i did sth like this: and it's... working fine :D
  3. D

    Issue with function which's read number from file

    Ok, for decimal laces I can use Single, Double or Decimal types - I did my homework ;) Now I've got and but it still gives me 632 :(
  4. D

    Issue with function which's read number from file

    Hi, I'll try do it tomorow and I'll check if Long support decimal places ;) In that file will be only numeric values, eg 234,12, 22, etc (there won't be sth like 123ab or "fdffd"). Thanks for your answer :)
  5. D

    Issue with function which's read number from file

    Hi, I've got program which is checking OS' backups (if backup was created, what 'size' is backup file have, etc) and I've got Function which imports file's size: Function wielkoscNiedzielnyOdczytaj() As Long Dim wielkoscNiedzielny As Long = 0 Try Using sr As New...
  6. D

    Question How to copy directories with files?

    Private Sub CopyDirectory(ByVal sOriginal As String, ByVal sDestination As String) Dim oFiles() As IO.FileInfo Dim oFile As IO.FileInfo Dim oDirectory As New IO.DirectoryInfo(sOriginal) IO.Directory.CreateDirectory(sDestination) Try oFiles = oDirectory.GetFiles()...
  7. D

    Question How to copy directories with files?

    Hi all, I don't know how can I copy files and subdirectories from one directory. Below you can see my code which copies directories but without files into them. ' Wywołanie procedury kopiującej katalogi z profilu FF Try Dim source As DirectoryInfo = New DirectoryInfo(profilFF)...
Back
Top