I have dexpot configured so when I open a desktop, a visual basic script runs which opens certain Windows Explorer windows. The script runs fine, the windows open fine, but after a few minutes I get the error "Windows Explorer has stopped working". I do the same thing to open a spreadsheet and that doesn't crash on me. Any ideas? Is there a better way to automatically open windows?
==========================================================================
The script looks like this:
Wscript.Timeout = 60
Wscript.Echo "Script Full Name: " & Wscript.ScriptFullName
'
Set objShell = WScript.CreateObject("WScript.Shell")
'
' Open 1 ---------------------------------------------------------------
' GET YOUR DESIGN SPREADSHEET OPEN
' strFolder = "c:\Users\dfreder1\Documents\FRED\Projects\408115_Elgin_OHare_Wolf_Creek\WolfCreek3.xlsx"
' strPath = "excel.exe /e," & strFolder
' objShell.Run strPath
'
filePath = "c:\Users\dfreder1\Documents\FRED\Projects\408115_Elgin_OHare_Wolf_Creek\WolfCreek3.xlsx"
Set oExcel = CreateObject("Excel.Application")
oExcel.Workbooks.Open(filepath)
oExcel.Visible = True
'
'
' Open 2 ---------------------------------------------------------------
' GET YOUR LOCAL PROJECT FOLDER ON C DRIVE OPEN
strFolder = "C:\Users\dfreder1\Documents\FRED\Projects\408115_Elgin_OHare_Wolf_Creek"
strPath = "explorer.exe /n," & strFolder
objShell.Exec strPath
'
' Stop Opening stuff and quit---------------------------------------------------------------
WScript.Quit
"Windows Explorer has stopped working" after a few minutes
Re: "Windows Explorer has stopped working" after a few minut

You can enter folder names (Excel documents as well) directly as commands in "Configure Desktops > Start-up". Not sure if it really makes a difference, but it's worth a try.
Who is online
Users browsing this forum: No registered users and 50 guests