Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, February 22, 2025 
 
slxdeveloper.com Community Forums  
   
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!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Opening Windows Explorer
Corey
Posts: 9
 
Opening Windows ExplorerYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Opening Windows ExplorerYour last visit to this thread was on 1/1/1970 12:00:00 AM
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..."
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Opening Windows ExplorerYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Jun 08 5:10 PM
You can use the "Run" method I've described here: http://customerfx.com/pages/crmdeveloper/2004/02/10/how-to-execute-a-file-program-in-vbscript.aspx

Just pass to it a directory location, such as:

Run "C:\"


and it will open the directory location in explorer.

-Ryan
[Reply][Quote]
Corey
Posts: 9
 
Re: Opening Windows ExplorerYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Opening Windows ExplorerYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Opening Windows ExplorerYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Jun 08 7:06 AM
Here's a link to an OOTB solution from Sage SalesLogix that works 100% of the time:
www.rjlSystems.net/TheToolBoxX/DemoOfSlxCommonDialogs.zip

It's a bundle that demo's the SalesLogix provided "wrappers" for Common Controls.
--
RJLedger - rjlSystems
"...Customer First..."
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Opening Windows ExplorerYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Jun 08 10:42 AM
Quote:
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
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Opening Windows ExplorerYour last visit to this thread was on 1/1/1970 12:00:00 AM
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..."
[Reply][Quote]
Corey
Posts: 9
 
Re: Opening Windows ExplorerYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Opening Windows ExplorerYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Jun 08 10:41 AM
Quote:
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.
[Reply][Quote]
Bob Mueller
Posts: 1
 
Re: Opening Windows ExplorerYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Opening Windows ExplorerYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Aug 12 3:59 PM
fiogf49gjkf0d

First, the "Run" method is located in your code? See http://customerfx.com/pages/crmdeveloper/2004/02/10/how-to-execute-a-file-program-in-vbscript.aspx for the implementation of "Run", which you need to provide in your code somewhere.


Second, if you enter a URL in the Run dialog in Windows, does it correctly open the browser and go to the URL? I've seen where Firefox is waiting for an update it will throw back an error instead of responding to a Shell command.

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/22/2025 11:49:58 PM