fork download
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. 'Declare Variables
  6. Dim FSO
  7. Dim sFile As String
  8. Dim sSFolder As String
  9. Dim sDFolder As String
  10.  
  11. 'This is Your File Name which you want to Copy
  12. sFile = "a b.txt"
  13.  
  14. 'Change to match the source folder path
  15. sSFolder = "m:\ejukovskiy\1\1\"
  16.  
  17. 'Change to match the destination folder path
  18. sDFolder = "m:\ejukovskiy\1\2\"
  19.  
  20. 'Create Object
  21. Set FSO = CreateObject("Scripting.FileSystemObject")
  22.  
  23. 'Checking If File Is Located in the Source Folder
  24. If Not FSO.FileExists(sSFolder & sFile) Then
  25. MsgBox "Specified File Not Found", vbInformation, "Not Found"
  26.  
  27. 'Copying If the Same File is Not Located in the Destination Folder
  28. ElseIf Not FSO.FileExists(sDFolder & sFile) Then
  29. FSO.CopyFile (sSFolder & sFile), sDFolder, True
  30. MsgBox "Specified File Copied Successfully", vbInformation, "Done!"
  31. Else
  32. MsgBox "Specified File Already Exists In The Destination Folder", vbExclamation, "File Already Exists"
  33.  
  34.  
  35. End If
  36. End Sub
  37. End Class
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Visual Basic.Net Compiler version 0.0.0.5914 (Mono 2.4.2 - r)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.


/home/T0ExL7/prog.vb (21,9) : Error VBNC90019: Expected 'End'.
Error recovery not implemented yet.
/home/T0ExL7/prog.vb (21,9) : Error VBNC30205: Expected end of statement.
Error recovery not implemented yet.
/home/T0ExL7/prog.vb (21,9) : Error VBNC90019: Expected 'End'.
Error recovery not implemented yet.
/home/T0ExL7/prog.vb (21,9) : Error VBNC30205: Expected end of statement.
Error recovery not implemented yet.
/home/T0ExL7/prog.vb (21,9) : Error VBNC30203: Not valid as identifier.
/home/T0ExL7/prog.vb (24,4) : Error VBNC30203: Not valid as identifier.
/home/T0ExL7/prog.vb (25,8) : Error VBNC30203: Not valid as identifier.
/home/T0ExL7/prog.vb (28,8) : Error VBNC30203: Not valid as identifier.
/home/T0ExL7/prog.vb (29,5) : Error VBNC30203: Not valid as identifier.
/home/T0ExL7/prog.vb (30,8) : Error VBNC30203: Not valid as identifier.
/home/T0ExL7/prog.vb (31,6) : Error VBNC30203: Not valid as identifier.
/home/T0ExL7/prog.vb (32,8) : Error VBNC30203: Not valid as identifier.
/home/T0ExL7/prog.vb (35,9) : Error VBNC30203: Not valid as identifier.
/home/T0ExL7/prog.vb (36,9) : Error VBNC30203: Not valid as identifier.
/home/T0ExL7/prog.vb (37,10) : Error VBNC30203: Not valid as identifier.
There were 15 errors and 0 warnings.
Compilation took 00:00:00.6485280
stdout
Standard output is empty