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
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
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
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
]+':\');
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
– 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
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
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
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
.
:)
-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
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
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
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.
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
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
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?
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.
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
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..
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
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
]
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
;
-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
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
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
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
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
: [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
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
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
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
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
: 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
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).
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
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
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
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..."
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.
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
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
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
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
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
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
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
| 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?
-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
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
-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
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
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
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
: 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
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
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
;
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
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.
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
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
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
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.
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
-
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
64 matches
Mail list logo