|
Abhijit Jana wrote: queries365 wrote:
I need to start a process.
using System.Diagnostics NameSpace, then use Process Class
Hey Abhijit,
Thanks for replying
I have already tried this and it works fine in Windows XP. But in Windows Vista, the service starts and the process doesn't start.
Can you please give some Windows Vista specific help ?
Thanks and regards,
queries365
|
|
|
|
|
There is no such thing as "Vista-specific help" for this. Have you tried running the service under the debugger and seeing where it's failing? Are you specifying the working folder in the process object? Are you specifying the fully qualified path and filename to the file you're tying to execute?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
It could be a permissions problem - Vista can be a bitch with that, I bet you're running with administrator privaleges in XP which is why it works. If so, try adding a manifest file and require your service to be elevated - this'll get you the annoying UAC prompt when your service starts but should fix the problem.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
public static void RunProccess(string ExePath)<br />
{<br />
System.Diagnostics.Process.Start(ExePath);<br />
}
I know nothing , I know nothing ...
|
|
|
|
|
Hello.
How can we get the position (X & Y) of taskbar in WinXP with C# ?
Thanks
|
|
|
|
|
You can use FindWindow api to find position of taskbar. You can call winapi functions by using P/Invoke[^] To find out class name of taskbar by using spy++
|
|
|
|
|
Additionally: The class for the taskbar is Shell_TrayWnd
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I am aware about it, I just wanted him to find it himself
|
|
|
|
|
You can also use the Rectangle s obtained by Screen.PrimaryScreen.Bounds and Screen.PrimaryScreen.WorkingArea to compute the area occupied by the taskbar.
/ravi
|
|
|
|
|
I know it's not normally possible to browse for them in windows and that's why I'm asking this question in the C# forum.
Is there any way to read Firefox cached temporary files and identify them by names and get their contents in C#??
Please advise.
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
I don't think so, but if you know where they live, you could try. Working out what they are would involve working out the format their stored in, not sure how complex that would be.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks Christian, I found that if you type:
about:cache?device=disk
In the address bar and hit enter, you can read the cache files in a way but not browse them, please let us know if you find a way to work this out someday and I promise to do the same if I knew anything regarding this.
Merry Christmas Christian
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
|
Thanx, I found something here:
%userprofile%\Local Settings\Application Data\Mozilla\Firefox\Profiles\6brnkgoc.default\Cache
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
The source code for firefox is obviously avaliable... that should help you to solve your problem.
|
|
|
|
|
Is their a way to track what folders where navigated through.
I've seen this: http://www.codeproject.com/KB/files/MonitorFolderActivity.aspx
Where it's nice for detecting what paths files were created in, etc. but i'm looking for detection of "exploring" of folders.
|
|
|
|
|
|
|
Simply you can monitor the LastAccessTime of a System.IO.DirectoryInfo Object.
|
|
|
|
|
Hi
I would like to create unit test for one of my component
In order to do it I need to link a file from my main project.sln to unittest.sln
How can I link a file from other solution without create the same file again in the unit test.sln
I try to USE ‘Add existing item’ option but it create copy of the file in the unit test solution and I wish to use link, have only one file with two instances in two different solutions
Thanks
Ronen
|
|
|
|
|
Ronenb wrote: How can I link a file from other solution without create the same file again in the unit test.sln
You can use "Add existing item". In the file open dialog click on the file and then on the arrow right to the "Add" button. You can then select "Add as link".
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
Hi to all,
I created a method outside the page_load.
Now I want the value of that variable which is defined in the method, in Page_load.
thanks.....
|
|
|
|
|
Don't cross post. You'll get winforms answers in this, non ASP.NET forum.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
I need to set a background image to my report as a watermark. I tried inserting picture to newly created page header and set underlying property to true.
However, this did not solve my problem. Can somebody help me to set the background image correctly to my reports? I am using c#.net and it is for a windows application.
Thanks
|
|
|
|