473,513 Members | 2,420 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 9419
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?option=com_content&task=view&id=21&Itemi d=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
66768
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...
5
2837
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...
5
1777
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...
4
9705
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...
3
11066
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
5199
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...
6
6443
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...
3
3462
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...
1
47358
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...
0
7380
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,...
0
7535
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...
1
7098
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...
0
7523
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...
0
5683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1592
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 ...
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.