473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Getting Directory Path

Hi,

I need to allow user to specify the directory where to save some
files. User should not provide the name of the file since it is
prenamed by the system. He/she only needs to provide the path to the
location where file will be saved.

I tried to do this using FileSaveDialog but I dont know how to disable
the box that requires the user to provide the name of the file.

How can I let the user select only the location without providing the
name of the file?

Any help will be appreciated,
_dino_
Nov 21 '05 #1
3 1060
Dino Buljubasic wrote:
Hi,

I need to allow user to specify the directory where to save some
files. User should not provide the name of the file since it is
prenamed by the system. He/she only needs to provide the path to the
location where file will be saved.

I tried to do this using FileSaveDialog but I dont know how to disable
the box that requires the user to provide the name of the file.

How can I let the user select only the location without providing the
name of the file?

Any help will be appreciated,
_dino_


Have you looked at using the folderbrowserdialog control?

Chris
Nov 21 '05 #2
Hi Chris,

I did not even know it existed :)

Thank you
On Wed, 03 Aug 2005 13:56:35 -0400, Chris <no@spam.com> wrote:
Dino Buljubasic wrote:
Hi,

I need to allow user to specify the directory where to save some
files. User should not provide the name of the file since it is
prenamed by the system. He/she only needs to provide the path to the
location where file will be saved.

I tried to do this using FileSaveDialog but I dont know how to disable
the box that requires the user to provide the name of the file.

How can I let the user select only the location without providing the
name of the file?

Any help will be appreciated,
_dino_


Have you looked at using the folderbrowserdialog control?

Chris


Nov 21 '05 #3
Dino Buljubasic wrote:
Hi Chris,

I did not even know it existed :)

Thank you
On Wed, 03 Aug 2005 13:56:35 -0400, Chris <no@spam.com> wrote:

Dino Buljubasic wrote:
Hi,

I need to allow user to specify the directory where to save some
files. User should not provide the name of the file since it is
prenamed by the system. He/she only needs to provide the path to the
location where file will be saved.

I tried to do this using FileSaveDialog but I dont know how to disable
the box that requires the user to provide the name of the file.

How can I let the user select only the location without providing the
name of the file?

Any help will be appreciated,
_dino_


Have you looked at using the folderbrowserdialog control?

Chris



Knowing is half the battle...

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kali K E | last post by:
Hi, I could not understand how I can do the following things in Python. Please help me. 1. First I have to find the current directory from where the script is invoked. 2. Next I have to form a...
4
by: francisl | last post by:
How can we get a full directory size (sum of all his data)? like when we type `du -sh mydir` Because os.path.getsize('mydir') only give the size of the directory physical representation on the...
1
by: Adam | last post by:
I'm just starting to try and learn my first comp language. However, I'm so new to this I don't even know how to get the compiler to work that came with my Jamso's C++ book. I've read the readme...
6
by: john_williams_800 | last post by:
Hi; I am writing an html page that will live on one server in an ms windows network, but access pictures from a directory on another ms windows server in the network. I know in html the...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
0
by: ruju00 | last post by:
I am getting an error in Login() method of the following class FtpConnection public class FtpConnection { public class FtpException : Exception { public FtpException(string message) :...
1
by: mikebian | last post by:
I created a db that houses info about pictures that were scanned into the PC. The pictures are stored on the file system. I have a form coded so that it shows thumbnails of the images, which are...
7
by: epikto | last post by:
I have a mapped share that I am trying to get a listing of all the files that it contains. I use the following code to access the contents String files = Directory.GetFiles(path); I can then...
13
by: lawpoop | last post by:
Hello all - I have a two part question. First of all, I have a website under /home/user/www/. The index.php and all the other website pages are under /home/user/www/. For functions that are...
5
by: Ned White | last post by:
I have set up a virtual directory on ISS 6.0 to store the all .jpg and .swf files which i use in my project It is alias name is "OutSrc" Is it possible to acquire a list of files which exist in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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
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...

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.