473,670 Members | 2,407 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Perl/TK - Browse Folder Dialog

5 New Member
I'm working to add a simple GUI form to an already existing perl script. The script simply takes a part number and an output path. It then connects to a client application and downloads data to the output directory. This part works great. However, to improve the ease of use I want to invoke the Windows Browse Folder Dialog for the user to select an output directory. (rather than having to open Explorer and copy the path into the text box on my GUI manually)

Is there any simple way to do this? The best example I could find on my own was FileOp off of CPAN, but that conteracted the portability I require for this program.
Jul 13 '07 #1
7 9432
KevinADC
4,059 Recognized Expert Specialist
Are you using Tk? There must be a widget for opening the browse folder/files dialog box.
Jul 13 '07 #2
rayken15
5 New Member
Yes! Found it! You were right! There's a built in function. Apparently not many people know about this because it took me quite some time searching Google to find this one.
http://www.perltk.org/index.php?optio n=com_content&t ask=view&id=21& Itemid=28
Tk has several built in file/directory handling dialogs.
Jul 16 '07 #3
KevinADC
4,059 Recognized Expert Specialist
All the Tk modules documentation should be on your local computer if you have activestate perl installed. It should also be available if you installed Tk manually.
Jul 16 '07 #4
rayken15
5 New Member
Do you know where the documentation usually gets installed? This is on my work computer so I had nothing to do with the installation of either Tk or Perl. They were installed prior to my use of this computer.
Jul 17 '07 #5
miller
1,089 Recognized Expert Top Contributor
Just use CPAN.

cpan Perl/TK

- Miller
Jul 17 '07 #6
KevinADC
4,059 Recognized Expert Specialist
Do you know where the documentation usually gets installed? This is on my work computer so I had nothing to do with the installation of either Tk or Perl. They were installed prior to my use of this computer.
You would have to ask whoever is administering your system where the documentation is. Computer systems at work places can be setup so many different ways it's hard to say where it might be. If you have access to all files and folders look on the C: drive for an activestate or active perl folder.
Jul 17 '07 #7
rayken15
5 New Member
I keep forgetting about CPAN. I'm used to using Visual Basic and other MS languages. Thanks for the suggestions. I'll also consider tracking down the administrator to find local documentation if I can't find what I need on CPAN.

Thanks,
Steve.
Jul 17 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

21
66815
by: strutsng | last post by:
<input type="file"> only allows the user to browse for files. How about "browse for folder" dialog? Can html/javascript do that? I couldn't find any syntax for that. If not, please advise what are the other approaches. please advise. thanks!!
5
2845
by: deko | last post by:
I'm using the below code to allow users to browse for and select a folder. After selecting a folder from the dialog, the full path is returned to a text box and saved. The next time the user clicks the browse button, he wants to start browsing from the directory last selected (one level up from what's in the text box), rather than having to drill down from the root drive again. I've done this with AC2002 using the ActiveX version of the...
5
1785
by: Eric Twietmeyer | last post by:
Hi, Does anyone know why starting with VS.NET 2002 (and same with 2003) it is no longer possible to browse to a directory that has "ept" as part of the path? It worked fine in Vc 6.x. My initials and user name happen to be "ept", and so I have directories with that name. It is no longer possible to browse to any subfolder and therefore open any file under an "ept" directory. I can browse to such a folder using explorer and then drag a...
4
9740
by: marc | last post by:
Hi, I have 2 activex controls on my form that I need to open up a common dialog box and select/browse files, then populate two text fields. The first one I have working: The first activex is set up to open up the Select File Dialog box. The properties of the activex are as follows: OLE Class CommonDialog
3
11072
by: Highlander | last post by:
Hello all. Consider the following HTA: <HTML> <HEAD> <TITLE></TITLE></HEAD> <BODY> <SCRIPT LANGUAGE="VBScript"> Sub ButBrowse_onclick() '-- show browse window and Get file path:
3
5213
by: ApexData | last post by:
I am using code from the following links to establish a Browse File and Browse Folder dialog. http://www.mvps.org/access/api/api0001.htm http://www.mvps.org/access/api/api0002.htm This code works great. However, once the file dialog becomes visible, if the user clicks on my popup form that exists under the file dialog, the file dialog disappears under the form. Then, when the form clears, the file dialog shows. Select a file, and...
6
6450
by: Kuldeep | last post by:
Framework: Visual Studio 2005 Technology: ASP.NET 2.0 Language: C#.NET 2.0 I am trying to browse folders through the following piece of code. Please let me know if there is any kind of setting to get this working right? using shell32.dll; Shell32.ShellClass shl = new Shell32.ShellClass();
3
3472
by: Moshiko | last post by:
Hi guys, I am writing a website and I would like to write a user control (ActiveX? DLL?) that can open the Windows Folder Browse Dialog from the client. I do have a user control (a DLL project) that opens the relevant Dialog box. I have problems integrating it in my website - I would like users to
1
47446
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script. What You Need Any recent...
0
8466
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8901
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8813
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8591
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8659
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5683
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4388
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2799
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.