The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Opening Windows Explorer
Posted: 03 Jun 08 12:37 PM
|
Can someone please help me...I need to open Windows Explorer to a mapped folder on our network, from pressing a button on a form. Is that possible?
Thanks...in advance,
Corey |
|
|
|
Re: Opening Windows Explorer
Posted: 03 Jun 08 4:49 PM
|
Yep.. Look at the SalesLogix Common Dialogs Library in the toolset in the Architect.
You want to use the "OpenDialog" control.
-- RJLedger - rjlSystems "...Customer First..." |
|
|
| |
|
Re: Opening Windows Explorer
Posted: 03 Jun 08 6:22 PM
|
Thanks for this, this is exactly what I was looking for. I do have one question however...I'm just opening a network share (v:\something or another), and I'm getting a "Type mismatch: 'Run'". With this error message windows explorer opens up, but not to the network share like I asked it to. Any ideas why I'd be receiving this?
As you might have noticed, I'm a bit of a newby. |
|
|
|
Re: Opening Windows Explorer
Posted: 03 Jun 08 10:59 PM
|
Can you post the full code so I can see exactly what you're doing in it? I'd be happy to take a look. |
|
|
| |
|
Re: Opening Windows Explorer
Posted: 04 Jun 08 10:42 AM
|
Originally posted by Bob (RJ)Ledger
Here's a link to an OOTB solution from Sage SalesLogix that works 100% of the time... |
|
I don't think that is what he asking for. Corey is looking for a way to open an actual explorer window to a specified directory (not an open folder or file dialog).
Only way to do that in VBScript is to shell out to open the folder.
-Ryan |
|
|
|
Re: Opening Windows Explorer
Posted: 05 Jun 08 9:05 AM
|
You can "prime" the SalesLogix controls to open to a specific location (drive letter or URL based). Try it. -- RJLedger - rjlSystems "...Customer First..." |
|
|
|
Re: Opening Windows Explorer
Posted: 05 Jun 08 10:27 AM
|
Alright, I got this working...I used your code (Ryan) as a base and just made a few changes, as you can see below. Working perfectly now....Thanks.
Dim shell, sFile, Return
Set shell = CreateObject("WScript.Shell") sFile = "C:\some\directory\path"
Return = shell.Run(sFile)' Chr(34) & sFile & Chr(34), 1, false Set shell = Nothing |
|
|
|
Re: Opening Windows Explorer
Posted: 05 Jun 08 10:41 AM
|
Originally posted by Bob (RJ)Ledger
You can "prime" the SalesLogix controls to open to a specific location (drive letter or URL based). Try it. |
|
That is correct, but it still does not solve what Corey is after, to open a *windows explorer window* to a specific directory. |
|
|
|
Re: Opening Windows Explorer
Posted: 23 Aug 12 2:23 PM
|
fiogf49gjkf0d I'm getting a type mismatch error when running the following code.
Sub ButtonStndReportClick(Sender)<br /> Dim URLString URLString = "http://someserverthatdoesmyreports/reports" run URLString End Sub
I'm using the same script in 4 other SLX databases and it works. |
|
|
| |
|