Click here to Skip to main content
15,886,806 members
Home / Discussions / C#
   

C#

 
Questionbrowse my computer Pin
Vivek Vijayan12-Aug-09 2:02
Vivek Vijayan12-Aug-09 2:02 
AnswerRe: browse my computer Pin
musefan12-Aug-09 2:09
musefan12-Aug-09 2:09 
QuestionUnable To Serialize TabControl . Pin
shaktisinh12-Aug-09 1:50
shaktisinh12-Aug-09 1:50 
AnswerRe: Unable To Serialize TabControl . Pin
Mike Ellison12-Aug-09 2:46
Mike Ellison12-Aug-09 2:46 
AnswerRe: Unable To Serialize TabControl . Pin
Hristo-Bojilov12-Aug-09 5:16
Hristo-Bojilov12-Aug-09 5:16 
GeneralRe: Unable To Serialize TabControl . Pin
shaktisinh13-Aug-09 0:32
shaktisinh13-Aug-09 0:32 
GeneralRe: Unable To Serialize TabControl . [modified] Pin
Hristo-Bojilov14-Aug-09 0:35
Hristo-Bojilov14-Aug-09 0:35 
QuestionHow to get the File Path using WMI Pin
Jacobb Michael12-Aug-09 1:28
Jacobb Michael12-Aug-09 1:28 
Hi all !

When the file is closed, i just want to know the file path.

I am using as bellow :

ManagementEventWatcher mngWatch;
WqlEventQuery wqlEQ;
wqlEQ = new WqlEventQuery("SELECT * FROM Win32_ProcessStartTrace");
wqlEQ.EventClassName = "Win32_ProcessStartTrace";
mngWatch = new ManagementEventWatcher(wqlEQ);
mngWatch.EventArrived += new EventArrivedEventHandler(mngWatch_EventArrived);
mngWatch.Start();

from this event creator i can get an Exe path not a File path :

1) in the Process.MainModule name contains the Exe path of the notepad
rather i want the real path from where the file is opened
2) For more clarity if i open a file form D:\\test.txt then i when the file is closed, i want to get that FILE PATH


can some one help me how to do that.


thanks a lot

Regards
.....Jack

AnswerRe: How to get the File Path using WMI Pin
Dave Kreskowiak12-Aug-09 4:51
mveDave Kreskowiak12-Aug-09 4:51 
Questionproblem with windows application Pin
Member 305788712-Aug-09 1:26
Member 305788712-Aug-09 1:26 
AnswerRe: problem with windows application Pin
0x3c012-Aug-09 1:32
0x3c012-Aug-09 1:32 
GeneralRe: problem with windows application Pin
Member 305788712-Aug-09 3:21
Member 305788712-Aug-09 3:21 
GeneralRe: problem with windows application Pin
Dave Kreskowiak12-Aug-09 4:49
mveDave Kreskowiak12-Aug-09 4:49 
GeneralRe: problem with windows application Pin
Member 305788712-Aug-09 23:10
Member 305788712-Aug-09 23:10 
GeneralRe: problem with windows application Pin
Dave Kreskowiak13-Aug-09 1:52
mveDave Kreskowiak13-Aug-09 1:52 
Questionloop through all nodes in a treeNode Pin
reilak12-Aug-09 0:30
reilak12-Aug-09 0:30 
AnswerRe: loop through all nodes in a treeNode Pin
padmanabhan N12-Aug-09 0:42
padmanabhan N12-Aug-09 0:42 
AnswerRe: loop through all nodes in a treeNode Pin
Luc Pattyn12-Aug-09 0:45
sitebuilderLuc Pattyn12-Aug-09 0:45 
AnswerRe: loop through all nodes in a treeNode Pin
stancrm12-Aug-09 0:46
stancrm12-Aug-09 0:46 
QuestionDataSet DateTime Binding Issue Pin
VenkataRamana.Gali12-Aug-09 0:25
VenkataRamana.Gali12-Aug-09 0:25 
AnswerRe: DataSet DateTime Binding Issue [Post bumping, please ignore] Pin
Henry Minute12-Aug-09 2:16
Henry Minute12-Aug-09 2:16 
QuestionRepeat For Each ListView Item Pin
iNutR11-Aug-09 23:52
iNutR11-Aug-09 23:52 
AnswerRe: Repeat For Each ListView Item Pin
Mycroft Holmes12-Aug-09 1:31
professionalMycroft Holmes12-Aug-09 1:31 
Questionword 2007 template application Pin
AmbitiousBeginner11-Aug-09 23:48
AmbitiousBeginner11-Aug-09 23:48 
AnswerRe: word 2007 template application Pin
benjymous12-Aug-09 0:29
benjymous12-Aug-09 0:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.