Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. save dialog box problem using vb script

save dialog box problem using vb script

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettoolshelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    raj1576
    wrote on last edited by
    #1

    Hi all I am using vb script to open save dialog box in asp.net. This works fine in xp but it is not working in vista or windows 7 . I am using following code to execute the script Sub savedialog() set objDialog = CreateObject("SAFRCFileDlg.FileSave") objDialog.FileName = "C:\Scripts\Script1.vbs" objDialog.FileType = "VBScript Script" intReturn = objDialog.OpenFileSaveDlg if intReturn Then Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.CreateTextFile(objDialog.FileName) objFile.WriteLine Date objFile.Close else Wscript.Quit End if End Sub How i run it in windows vista or seven .

    N S 2 Replies Last reply
    0
    • R raj1576

      Hi all I am using vb script to open save dialog box in asp.net. This works fine in xp but it is not working in vista or windows 7 . I am using following code to execute the script Sub savedialog() set objDialog = CreateObject("SAFRCFileDlg.FileSave") objDialog.FileName = "C:\Scripts\Script1.vbs" objDialog.FileType = "VBScript Script" intReturn = objDialog.OpenFileSaveDlg if intReturn Then Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.CreateTextFile(objDialog.FileName) objFile.WriteLine Date objFile.Close else Wscript.Quit End if End Sub How i run it in windows vista or seven .

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      What are you trying to accomplish with this? This isn't necessary to save a file. Please remember in the future to format any code snippets using the pre tags


      I know the language. I've read a book. - _Madmatt

      1 Reply Last reply
      0
      • R raj1576

        Hi all I am using vb script to open save dialog box in asp.net. This works fine in xp but it is not working in vista or windows 7 . I am using following code to execute the script Sub savedialog() set objDialog = CreateObject("SAFRCFileDlg.FileSave") objDialog.FileName = "C:\Scripts\Script1.vbs" objDialog.FileType = "VBScript Script" intReturn = objDialog.OpenFileSaveDlg if intReturn Then Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.CreateTextFile(objDialog.FileName) objFile.WriteLine Date objFile.Close else Wscript.Quit End if End Sub How i run it in windows vista or seven .

        S Offline
        S Offline
        scottgp
        wrote on last edited by
        #3

        A quick google indicates that SAFRCFiledlg was deprecated - http://groups.google.com/group/microsoft.public.windows.server.scripting/browse_thread/thread/c76386961cf68359/89e053aff2f57d19?lnk=st&q=file+open+dialog+VBSCRIPT+VISTA&rnum=1&hl=en#89e053aff2f57d19[^] Scott

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups