a nice photo of my face :D

Copy Path To Clipboard


Tell me what you think of this prg.! Is it good? Does it suck? Tell me!


What's new?    

Version 0.2 is out (new options are added)

  1. Short description
  2. Download
  3. Install
  4. Options
  5. Version history
  6. Tips
  7. To do
  8. Credits
  9. Contact

Description ( Top )
This simple console application copies the path of the current working directory to the Windows clipboard. If you give it a parameter, it is added to the end of the path.
Example:

What you type:
What is copied to the clipboard:
c:\utils> cpc c:\utils
c:\utils> cpc arj.exe c:\utils\arj.exe

At the moment there are only some options: /? and /help gives a short help, /unix replaces the '\' character to Unix-like '/'. If the path contains spaces then the whole string is put between quotation marks.

Download ( Top )
You can download the source and its components here.

Install ( Top )
Just unpack it. You get the source (I used Dev-C++ during the development) and the binary too (cpc.exe). Copy the binary to a directory that is in your path, and then you can use it any time.

Options ( Top )
This is the output of the /h option:

cpc: copies the path of the current working dir. to the Windows clipboard
if a parameter is given, it'll also be added to the path

Usage: cpc [option] [parameter]
where option can be:
	/h , /help       get this help
	/q , /nq         don't add (no) quotation marks
	/fq              force quotation marks, do add them
	/u , /unix       change the path separator to UNIX-like separator
	that is: change "\" to "/"
	/d, /ds, /dos    change "\" to "\\"

v0.2, written by Laszlo Szathmary, szathml@delfin.unideb.hu

Version history ( Top )
Version Date Remark
V0.2 August 2003 some useful options added (use /h to get the help)
V0.1 again May 2003 code rewritten
v0.1 about 1999 First implementation. It was all very nice, but I lost the source :( I don't know how it happened, I always make backups. The binary remained, so I could use it, but then I had the idea to make it open source, but without source it's quite difficult. So I had to rewrite it.

Tips ( Top )
Here are some tips how to use it effectively:

Ideas / To do ( Top )
Some useful options, but what? Any idea? Anyway, a good Windows programmer could look at the function copyStringToClipboard() because I am not sure that it's completely correct. The program runs fine, but who knows? :)

Credits ( Top )
A friend of mine, Gabor helped me in the first implementation coding the copyStringToClipboard() function. Unfortunately this code got lost :(

How to contact me ( Top )
If you have any ideas how to improve this project, then send me your suggestions/patches to szathml@delfin.unideb.hu.


Created by Laszlo Szathmary, alias Jabba Laci, 2003