Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Dialog  OpenFile  

 Content of Dialog OpenFile.vbs
MD5 Hash: DD3F77B3DF857C72BB9ADAF437F1C26D
'#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#'
'/| |\\\\\\\\'
'//| |\\\\\\\'
'///| |\\\\\\'
'////| Version 1.0.0 |\\\\\'
'/////| Author: Boris TOll |\\\\'
'//////| Last Update: 31.01.2008 |\\\'
'///////| |\\'
'////////| |\'
'#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#*~#'


Dim strFile : strFile = OpenFile()

If strFile > "" then

Msgbox "Ausgewählte Datei: " & VbCrLf & strFile

End if


'--------------------------------------------------------
Function OpenFile()

On Error Resume Next

Dim ofso : Set ofso = CreateObject("Scripting.FileSystemObject")
Dim oDlg : set oDlg = Wscript.CreateObject("MSComDlg.CommonDialog")

If Err.Number <> 0 then

Err.Clear
Set oDlg = CreateObject("UserAccounts.CommonDialog")

If Err.Number <> 0 then
MsgBox "Notwendige Runtimes sind nicht vorhanden, Script wird beendet.",16 , "Info"
WScript.Quit
End if

End if

oDlg.Filter = "All Files (*.*)|*.*"
oDlg.FilterIndex = 1
oDlg.MaxFileSize = 10000
oDlg.CancelError = true
oDlg.ShowOpen

If oDlg.Filename > "" and ofso.FileExists(oDlg.Filename) then

OpenFile = oDlg.Filename

Else

OpenFile = ""

End if

End Function

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a