Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I persist state of an object that runs exe file like notepad

 
padmaratna kamble
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to make program that run notpad.exe . after run notpade i want write
some in like "hello" can i persist state of that object.
please help me
Thanks in Advance
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, This is not the right form to ask these type of questions. also your display name voilates ranch's naming policy. please update your display name as per the java ranchstandards.

Coming to your question, I'm not sure what you need exactly.
If you want to create a text file & open it in notepad then, what you can do is you can use java.io & write the text you want into a file & use RunTime.exec to open that text in a notepad like "RunTime.exec( notepad "C:\test.txt" ); "
[ November 02, 2006: Message edited by: Srinivasa Raghavan ]
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

We have a strict policy on display names, which must be a real first and last name with a space between.

Please go here and fix your display name up, pronto. Thanks, pardner!

This "JavaRanch" forum is for discussing the site www.javaranch.com itself. For actual Java discussions, you can use the other forums. I'm going to move this one to "Java in General (Beginner)." There will be a link to the new forum right below the moose picture.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic