home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
file.exists problem
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="IanJ" data-source="post: 751100" data-attributes="member: 107764"><p>Hi,</p><p></p><p>Yes, I've tried both those & system.IO is in place. I've also tried removing the path completely (as I think the path I'm using is default anyway).</p><p></p><p>The following works, so I know that folder can be reached.</p><p></p><p>[CODE]</p><p>System.Diagnostics.Process.Start("C:/Program Files/Team MediaPortal/MediaPortal/scstoptvservice.cmd");</p><p>System.Threading.Thread.Sleep(2000);</p><p>System.Diagnostics.Process.Start("C:/Program Files/Team MediaPortal/MediaPortal/scstarttvservice.cmd");</p><p>[/CODE]</p><p></p><p>What I am REALLY trying to do (not being a C# dev) is have 2 buttons on the screen and have a way of remembering which one was pressed last even if MP is restarted etc.......so I thought it would be easy to use file.exist as a way of detecting that. I don't really want to go near the database.</p><p></p><p>Ian.</p></blockquote><p></p>
[QUOTE="IanJ, post: 751100, member: 107764"] Hi, Yes, I've tried both those & system.IO is in place. I've also tried removing the path completely (as I think the path I'm using is default anyway). The following works, so I know that folder can be reached. [CODE] System.Diagnostics.Process.Start("C:/Program Files/Team MediaPortal/MediaPortal/scstoptvservice.cmd"); System.Threading.Thread.Sleep(2000); System.Diagnostics.Process.Start("C:/Program Files/Team MediaPortal/MediaPortal/scstarttvservice.cmd"); [/CODE] What I am REALLY trying to do (not being a C# dev) is have 2 buttons on the screen and have a way of remembering which one was pressed last even if MP is restarted etc.......so I thought it would be easy to use file.exist as a way of detecting that. I don't really want to go near the database. Ian. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
file.exists problem
Contact us
RSS
Top
Bottom