954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to access start->run in xp through program??

In Xp... I want to access start->run through programatically

like when click start ->run-> //192.168.23.5

how i access this run through c???

Aamit
Posting Whiz
342 posts since Apr 2008
Reputation Points: 3
Solved Threads: 15
 

system("\"D:\\Program Files\\Internet Explorer\\iexplore.exe\" 192.168.23.5");

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

//192.168.23.5 /c/abc.exe

This is ip address of machine which is in Lan..
Not webside address....

Aamit
Posting Whiz
342 posts since Apr 2008
Reputation Points: 3
Solved Threads: 15
 

Will this work?

system ("explorer http\\\\192.168.23.5");

Prabakar
Posting Whiz
342 posts since May 2008
Reputation Points: 94
Solved Threads: 33
 

Oh, I didnt see your reply, try
system( "\"//192.168.23.5/c/abc.exe\"");

Prabakar
Posting Whiz
342 posts since May 2008
Reputation Points: 94
Solved Threads: 33
 

No....
I want to access //192.168.23.5/c/abc.exe
on client machine through server this client machine in Lan

Aamit
Posting Whiz
342 posts since Apr 2008
Reputation Points: 3
Solved Threads: 15
 

One of the computers on my lan is named Victor. This works

system("dir \\\\Victor\\SharedDocs");


So I suppose you could do this

system("\\\\192.168.23.5\\c\\abc.exe");
Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

Yes yes he's right. It should work.

Prabakar
Posting Whiz
342 posts since May 2008
Reputation Points: 94
Solved Threads: 33
 

This gives error c:/abc.exe is Not recognized

Aamit
Posting Whiz
342 posts since Apr 2008
Reputation Points: 3
Solved Threads: 15
 

does abc.exe exist in that directory? And do you have execute permission there?

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

>> C:/abc.exe is Not recognized

I guess you should use backward slash '\'

Prabakar
Posting Whiz
342 posts since May 2008
Reputation Points: 94
Solved Threads: 33
 

Yes abc.exe in this path 192.168.23.5\\c\\abc.exe ..I share c: of that machine .....

Aamit
Posting Whiz
342 posts since Apr 2008
Reputation Points: 3
Solved Threads: 15
 

Never use system() in Win32. It's horrible and not professional.
Use Net apis or Shell apis to emulate IE.

marco93
Junior Poster
132 posts since Apr 2008
Reputation Points: -76
Solved Threads: 14
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You