Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 20th, 2005, 04:19 AM
Registered User
 
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting path of the file

Newbie, of course..

I want to rightclick some picture in Windows Explorer, choose "Resize" action (which I added there) thus starting console application that will, obviously, resize the pic.
I made the app and it works.

But the problem is how do I get the full path of the picture. I do get the name of the file (args[0]), but I dont know how to get the path.

Another thing: is there any way I could hide the (annoying) console window which appears when I call the application?

Thanks in advance

 
Old December 20th, 2005, 01:54 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Maybe windows can also pass you the "working directory". I've never written anything like what you are doing so I don't know.

Regarding the annoying console window... Can you make the app a windows form app that doesn't display a form? Then it will probably just run and exit without anything displayed.

-Peter
 
Old December 21st, 2005, 10:19 AM
Registered User
 
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I hoped there was a better solution..

 
Old December 21st, 2005, 05:06 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

Read this thread

http://p2p.wrox.com/topic.asp?TOPIC_ID=36640

Regards
Ankur Verma
 
Old December 23rd, 2005, 04:25 AM
Registered User
 
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanx Ankur..
Nice thread. Haven't tried it yet, though..






Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieve Active File Path francois.timms Excel VBA 3 March 24th, 2008 05:14 PM
how to call file using full path labby C# 2005 4 September 27th, 2006 11:25 PM
Knowing File Path x_ray VB.NET 2002/2003 Basics 8 February 15th, 2006 04:12 PM
Get File path maxpotters Excel VBA 4 April 6th, 2005 01:19 PM
How to get the File Path DarthSith ASP.NET 1.0 and 1.1 Basics 2 October 29th, 2004 02:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.