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???

Recommended Answers

All 12 Replies

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

//192.168.23.5 /c/abc.exe

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

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

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");

Yes yes he's right. It should work.

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

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

>> C:/abc.exe is Not recognized

I guess you should use backward slash '\'

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.