[DUG] File Path

2011-06-20 Thread Bob Pawley
Hi I have an executable which I need to access that is installed in Program Files. With the advent of 64 byte in Windows 7, I need to distinguish which of the two file paths to use depending on the operating system. Win 7 path - C:\Program Files (x86)\... or Win XP path - C:\Program

Re: [DUG] File Path

2011-06-20 Thread Leigh Wanstead
Hi Bob, Will following code work? ExtractFilePath(Application.ExeName) Regards Leigh 2011/6/21 Bob Pawley rjpaw...@shaw.ca Hi I have an executable which I need to access that is installed in Program Files. With the advent of 64 byte in Windows 7, I need to distinguish which of the

Re: [DUG] File Path

2011-06-20 Thread David Moorhouse (DUG)
Hi Bob Info is in the linked article http://delphi.about.com/od/kbwinshell/a/SHGetFolderPath.htm Cheers David On 21/06/11 05:25, Bob Pawley wrote: Hi I have an executable which I need to access that is installed in Program Files. With the advent of 64 byte in Windows 7, I need to

Re: [DUG] File/Dir Open at My Computer

2011-05-23 Thread John Bird
Group - Delphi List Subject: Re: [DUG] File/Dir Open at My Computer John, the TDriveCombobox should do the trick. On 20/05/2011 1:35 a.m., John Bird wrote: I want to bring up a dialog to select a drive (Will be usually a removable USB drive). Can I do this with any of the standard Delphi

Re: [DUG] File/Dir Open at My Computer

2011-05-23 Thread David O'Brien
]+':\'); end; FreeMem(MyStr); end; From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Friday, 20 May 2011 1:35 a.m. To: NZ Borland Developers Group - Delphi List Subject: [DUG] File/Dir Open at My Computer I want to bring up

Re: [DUG] File/Dir Open at My Computer

2011-05-23 Thread Pawel Rewak
– as in it has Windows 3.1 look.   Is this really the most modern version of selecting a drive I can use on Windows 7? John From: Rohit Gupta Sent: Monday, May 23, 2011 2:37 PM To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] File/Dir Open at My Computer John, the TDriveCombobox

Re: [DUG] File/Dir Open at My Computer

2011-05-23 Thread John Bird
on D2007? John -Original Message- From: Pawel Rewak Sent: Tuesday, May 24, 2011 11:02 AM To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] File/Dir Open at My Computer Have a look at the JEDI VCL - TJvDriveCombo (in the Jv Lists, Combos, Trees tab) does this much better

Re: [DUG] File/Dir Open at My Computer

2011-05-23 Thread Jolyon Smith
be very straightforward. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Tuesday, 24 May 2011 15:49 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] File/Dir Open at My Computer Have looked

Re: [DUG] File/Dir Open at My Computer

2011-05-23 Thread Jolyon Smith
Ah wait, I think I am thinking of the JCL. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Tuesday, 24 May 2011 15:49 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] File/Dir Open at My Computer

Re: [DUG] File/Dir Open at My Computer

2011-05-23 Thread Jolyon Smith
. :) -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Tuesday, 24 May 2011 15:49 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] File/Dir Open at My Computer Have looked at the MegaDemo program

Re: [DUG] File/Dir Open at My Computer

2011-05-22 Thread Rohit Gupta
John, the TDriveCombobox should do the trick. On 20/05/2011 1:35 a.m., John Bird wrote: I want to bring up a dialog to select a drive (Will be usually a removable USB drive). Can I do this with any of the standard Delphi TOpenDialog or SelectDirectory etc? Ideally I want to bring up a

[DUG] File/Dir Open at My Computer

2011-05-19 Thread John Bird
I want to bring up a dialog to select a drive (Will be usually a removable USB drive). Can I do this with any of the standard Delphi TOpenDialog or SelectDirectory etc? Ideally I want to bring up a dialog starting at My Computer...(D2007) [Aside - I know how to show My Computer by starting

Re: [DUG] file tranfering issue

2008-05-10 Thread Vikas...
Hi Bevan thanks for the reply well no it dont run all time. my cleitn has kept a job shceduler so that it runs at 1 am every morning. . For copyign the image i used window copy function mentioed in API. It runs as desktop application. Yeah i am nott sure how it looses an network authentication.

[DUG] file tranfering issue

2008-05-07 Thread Vikas...
Hi we have a application running at my client side. it is client server based architecture. thing is the application at my regional side fectch information from central server and copies the image from the source location. we maintaned a table in regional side so based on the status on table the

Re: [DUG] file tranfering issue

2008-05-07 Thread Bevan Edwards
Hi Vikas, Is the application running all the time? Does it run as as desktop application or Windows Service? Could it be losing the network authentication credentials somehow? Regards, Bevan Vikas... wrote: Hi we have a application running at my client side. it is client server based

RE: [DUG] File handling help in Delphi 5

2007-12-05 Thread John Bird
I thought I had read in the help sometime that file variables could never be used in an array - but it looks like you are doing just that. For instance under File Types: Files are not allowed in arrays or records. If it is OK I also would like to do that as well - any rulings anyone?

Re: [DUG] File handling help in Delphi 5

2007-12-05 Thread Neven MacEwan
Vikas These are very old routines that date back to Pascal, look at TStrings (as suggested) and Streams HTH Neven Hi I am back again. Well i need one help in file handling. May be i sound dump here but i struck up badly at one point here. Ok let me first explain my first situation.

[DUG] File handling help in Delphi 5

2007-12-04 Thread Vikas...
Hi I am back again. Well i need one help in file handling. May be i sound dump here but i struck up badly at one point here. Ok let me first explain my first situation. I have say 10 files and path is say c:\vikas\file1textupto c:\vikas\file10.text. I am storyng all this in string list ok

Re: [DUG] File handling help in Delphi 5

2007-12-04 Thread Vikas...
Thanks Harris your solution solved my problem On 12/5/07, Kyley Harris [EMAIL PROTECTED] wrote: Your problem is that you are calling readln once before the while loop, without passing the data to lbuff.. this is reading the first line.. I suggest.. scrapping the assign readln method for..

Re: [DUG]: File properties

2002-10-04 Thread Kevin Parker
Yip thats it :-) Thanks Andreas --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of

[DUG]: File properties

2002-10-03 Thread Kevin Parker
Hi All When you right click on a file on the Windows Desktop one of the options is to select Properties. How can I invoke the same Properties Window from inside my app? Thanks Kevin --- New Zealand Delphi Users group

Re: [DUG]: File properties

2002-10-03 Thread Paul McKenzie
] Sent: Thursday, October 03, 2002 6:42 PM Subject: [DUG]: File properties Hi All When you right click on a file on the Windows Desktop one of the options is to select Properties. How can I invoke the same Properties Window from inside my app? Thanks Kevin

RE: [DUG]: File properties

2002-10-03 Thread Andreas Toth
; -Andreas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Parker Sent: Thursday, 3 October 2002 18:43 To: Multiple recipients of list delphi Subject: [DUG]: File properties Hi All When you right click on a file on the Windows Desktop one of the options

RE: RE: [DUG]: File Export Speed

2002-08-08 Thread Stacey Verner
August 2002 6:15 p.m.To: Multiple recipients of list delphiSubject: RE: [DUG]: File Export Speed Corey wrote: - Original Message - From: Myles Penlington To: Multiple recipients of list delphi Sent: Wednesday, August 07, 2002

Re: RE: [DUG]: File Export Speed

2002-08-08 Thread Paul McKenzie
Message - From: Stacey Verner To: Multiple recipients of list delphi Sent: Friday, August 09, 2002 8:45 AM Subject: RE: RE: [DUG]: File Export Speed I did this and we got a marginal speed improvement of about 10 seconds (out of 180). Doing further testing I

Re: [DUG]: File Export Speed

2002-08-08 Thread Corey Murtagh
Message - Original Message - From: Paul Heinz Sent: Thursday, August 08, 2002 6:15 PM Subject: RE: [DUG]: File Export Speed Corey wrote: - Original Message - From: Myles Penlington Sent: Wednesday, August 07, 2002 10:20 AM Subject: RE: [DUG]: File Export Speed

Re: [DUG]: File properties

2001-10-22 Thread Andrew Little
Subject: [DUG]: File properties Not sure if ive asked this before or not but.. Does anyone have some code that reads a files properties (name / subject etc). Robert MartinSoftware EngineerWild Software Ltd

RE: [DUG]: File Association

2001-08-20 Thread Jeremy Coulter
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sean Cross Sent: Monday, 20 August 2001 18:29 To: Multiple recipients of list delphi Subject: RE: [DUG]: File Association YOu could look for one of the many components that limit the number of instance of your app. Most have the facility

RE: [DUG]: File Association

2001-08-19 Thread Myles Penlington
to the event and reads the shared memory. Myles. -Original Message- From: vss [mailto:[EMAIL PROTECTED]] Sent: Monday, 20 August 2001 3:33 p.m. To: Multiple recipients of list delphi Subject: [DUG]: File Association Hi all. I have made it so an application that can open files that I have

RE: [DUG]: File Association

2001-08-19 Thread vss
ah...you got an example ? :) Jeremy -Original Message- From: Myles Penlington [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Date: Mon, 20 Aug 2001 15:35:01 +1200 Subject: RE: [DUG]: File Association There are 2 ways. 1. DDE 2. Create a OS Event/Mutex

RE: [DUG]: File Association

2001-08-19 Thread Myles Penlington
Subject: RE: [DUG]: File Association ah...you got an example ? :) Jeremy -Original Message- From: Myles Penlington [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Date: Mon, 20 Aug 2001 15:35:01 +1200 Subject: RE: [DUG]: File Association There are 2 ways. 1

RE: [DUG]: File Association

2001-08-19 Thread Jeremy Coulter
yip home nowcan do a search. Thanks, Jeremy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Myles Penlington Sent: Monday, 20 August 2001 17:54 To: Multiple recipients of list delphi Subject: RE: [DUG]: File Association Sorry - out of luck

RE: [DUG]: File Association

2001-08-19 Thread Sean Cross
: Monday, 20 August 2001 6:03 p.m. To: Multiple recipients of list delphi Subject: RE: [DUG]: File Association yip home nowcan do a search. Thanks, Jeremy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Myles Penlington Sent: Monday, 20 August 2001 17:54

[DUG]: File security on Windows 2000 server.

2001-01-15 Thread Stacey Verner
I am doing the following: Using the Active Directory Services Interface (ADSI) I create a user (lests name the user "fred"). I then want to give a particular group (lets say "NearlyAdmins") fullcontrol of freds Documents and settings path (C:\Documents and Settings\fred).

[DUG]: file in use?

2000-12-05 Thread Matthew Comb
How do I go about finding out if a file is in use? Matt. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL

Re: [DUG]: file in use?

2000-12-05 Thread Sandeep
Novice's way: Try deleting a file :-) Sandeep --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with

Re: [DUG]: file in use?

2000-12-05 Thread Mark Derricutt
On Wed, 6 Dec 2000, Sandeep wrote: Novice's way: Try deleting a file :-) Safe way - try open it for writing :) -- "We don't guarantee anything except that it will take up disk space..." Apache 2.0alpha5 Disclaimer Now Playing: no audio cd present

RE: [DUG]: file in use?

2000-12-05 Thread Myles Penlington
PM To: Multiple recipients of list delphi Subject: Re: [DUG]: file in use? On Wed, 6 Dec 2000, Sandeep wrote: Novice's way: Try deleting a file :-) Safe way - try open it for writing :) -- "We don't guarantee anything except that it will take up disk space..."

[DUG]: file option in windows.

2000-11-26 Thread Matthew Comb
Can anyone give me examples on how to add a file option to windows. e.g. right click on a directory and have the option compress there like winzip does? I would like to add something to both directories and all files. Cheers, Matt.

RE: [DUG]: file option in windows.

2000-11-26 Thread Myles Penlington
See Demos\ActiveX\ShellExt -Original Message- From: Matthew Comb [mailto:[EMAIL PROTECTED]] Sent: Monday, November 27, 2000 2:45 PM To: Multiple recipients of list delphi Subject: [DUG]: file option in windows. Can anyone give me examples on how to add a file option to windows

[DUG]: File Open Dialog

2000-08-27 Thread Tom Munro Glass
I need a File Open Dialog with the normal Filter facilities where I can prevent the user from browsing all over the hard disk - access must be restricted to the InitialDir and its children. Any ideas? == Tom Munro Glass

[DUG]: File type association sample code wanted

2000-06-20 Thread Cheng Wei
Good morning, I'm sure many have done this in delphi in the past, if you have a sample code handy that I can borrow, then I don't need to go over the exercise again, at least not starting from "begin...end". Thanks in advance! Cheng

Re: [DUG]: File Locking

1999-08-01 Thread Aaron Scott-Boddendijk
I have a thorny problem. I am wanting to open a file but before I do I need information about that file. I need to know the following: Does anyone else have the file open? Do they have that file opened exlusively? I need to be able to answer these two questions BEFORE I try to open the

RE: [DUG]: File browser

1999-06-28 Thread Anonymous
Fortunately MS have paid then 100 Extremely large ones to ship the new version with D5. Max -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Patrick Dunford Sent: Sunday, 27 June 1999 15:13 To: Multiple recipients of list delphi Subject: RE: [DUG]: File

RE: [DUG]: File browser

1999-06-26 Thread Wade Auchterlonie
You can't do this because it's not the right way of doing it... the open file dialogs are for opening files. If you want to select a directory, what's wrong with using SHBrowseForFolder? Wade Auchterlonie mailto:[EMAIL PROTECTED] | -Original Message- | Behalf Of Alistair George | | I

[DUG]: File browser

1999-06-26 Thread Alistair George
Thanks Wade, but thats Win 95 specific. If you want to select a directory, what's wrong with using SHBrowseForFolder? The following works, and doesnt use another component, but I HATE using Cancel!: procedure TCamForm.SetDIR1Click(Sender: TObject); begin setdir1.Tag := 1; {use the tag for a

RE: [DUG]: File browser

1999-06-26 Thread Wade Auchterlonie
| Thanks Wade, but thats Win 95 specific. | If you want to select a directory, what's wrong with using | SHBrowseForFolder? Actually it is Win95, win98, NT4.0 and NT5.0 specific. You won't find it in Windows 3.1 or earlier. Which platform are you targeting?

RE: [DUG]: File browser

1999-06-26 Thread Patrick Dunford
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alistair George Sent: Sunday, 27 June 1999 13:36 To: Multiple recipients of list delphi Subject: [DUG]: File browser Thanks Wade, but thats Win 95 specific. Are you using Windows 3.1

RE: [DUG]: File copying

1999-06-11 Thread Patrick Dunford
Of Cooke, Andrew Sent: Friday, 11 June 1999 16:55 To: Multiple recipients of list delphi Subject: RE: [DUG]: File copying My Windows help file says "[Now supported on Windows NT]" and sure enough, it works on NT 4. Andrew C

RE: [DUG]: File copying

1999-06-11 Thread Patrick Dunford
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Rohit Gupta Sent: Friday, 11 June 1999 16:49 To: Multiple recipients of list delphi Subject: Re: [DUG]: File copying Peter, can you confirm that it works on NT 4 ? I was looking up

[DUG]: File copying

1999-06-10 Thread richard . r . huegill
Whats the easiest way to copy files from delphi, execute s shell program ? write a copy FileObject that uses blockread/write ? I Have to do a whole stack of files and directories ?? Richard --- New Zealand Delphi

Re: [DUG]: File copying

1999-06-10 Thread pdunford
Quoting [EMAIL PROTECTED]: Whats the easiest way to copy files from delphi, execute s shell program ? write a copy FileObject that uses blockread/write ? I Have to do a whole stack of files and directories ?? look up ShFileOperation in the api help file It will copy subdirectories as

Re: [DUG]: File copying

1999-06-10 Thread Rohit Gupta
You can use CopyFile (winapi), which is what I have been using. But it is a pig - while copying the file, your app does not respond to anything for seconds. There is also MoveFile and DeleteFile. From memory there is a suite of routines in lzw unit which can uncompress the file as they

RE: [DUG]: File copying

1999-06-10 Thread Tony Blomfield
: Friday, 11 June 1999 13:06 To: Multiple recipients of list delphi Subject: [DUG]: File copying Whats the easiest way to copy files from delphi, execute s shell program ? write a copy FileObject that uses blockread/write ? I Have to do a whole stack of files and directories ?? Richard

Re: [DUG]: File copying

1999-06-10 Thread Rohit Gupta
Peter, It sounded too good, so I thought I would check it out so that I could use it. Unfortunately the dratted thing does not work under winnt - thats what the online help says anyway. :-( Richard, beware, before you use it. :-) Rohit

Re: [DUG]: File copying

1999-06-10 Thread pdunford
Quoting Rohit Gupta [EMAIL PROTECTED]: Peter, It sounded too good, so I thought I would check it out so that I could use it. Unfortunately the dratted thing does not work under winnt - thats what the online help says anyway. :-( The online help might be referring to winnt 3.5x using

RE: [DUG]: File copying

1999-06-10 Thread BJ Wilson
; Cheers. BJ... -- From: [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]] Reply To: [EMAIL PROTECTED] Sent: Friday, 11 June 1999 13:05 To: Multiple recipients of list delphi Subject:[DUG]: File copying Whats the easiest way to copy files from

Re: [DUG]: File copying

1999-06-10 Thread Rohit Gupta
Peter, can you confirm that it works on NT 4 ? I was looking up the win32api.hlp that comes with D3. On 11 Jun 99 at 16:14, [EMAIL PROTECTED] wrote: Quoting Rohit Gupta [EMAIL PROTECTED]: Peter, It sounded too good, so I thought I would check it out so that I could use it.

RE: [DUG]: File copying

1999-06-10 Thread Alistair George
I Have to do a whole stack of files and directories ?? Richard I've been toying with the idea of making a freeware duplicator program which doesnt do a diskcopy as such, which slows replication down. There is a whole heap of stuff: http://sunsite.icm.edu.pl/delphi/ One Ive picked up looks

RE: [DUG]: File copying

1999-06-10 Thread Cooke, Andrew
My Windows help file says "[Now supported on Windows NT]" and sure enough, it works on NT 4. Andrew Cooke -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Saturday, June 12, 1999 4:49 AM To: Multiple recipients of list delphi Subject: Re: [D

Re: [DUG]: FILE of ....

1999-02-25 Thread Rohit Gupta
Further to that, beware that old names are now property names such as Text, Assign, Close. New ones exist to replace them to clarify for the compiler such as AssignFile CloseFile. Else use System.Assign (I think). On 26 Feb 99 at 9:30, Siegfried Kirchmair wrote: Hi, I noticed that in

Re: [DUG]: FILE of ....

1999-02-25 Thread Siegfried Kirchmair
Hi Wilfred, Change your compiler options to use shortstrings by default, or explicitly declare the size of the string, or change the type of the time variable to "shortstring" instead i.e. To change the compiler option does not seem to work, while defining the string size works fine.

[DUG]: File compress

1999-02-08 Thread M Algawi
Hi folks, I wonder if anyone has an idea how to compress an archive file in delphi. I want to compress the output file of my application before saving it on the hard drive. I appreciate any help. Algawi --- New Zealand

Re: [DUG]: File compress

1999-02-08 Thread Nic Wise
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of M Algawi Sent: Sunday, 27 December 1998 15:04 To: Multiple recipients of list delphi Subject: [DUG]: File compress Hi folks, I wonder if anyone has an idea how to compress an archive file in delphi. I want