Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 26th, 2007, 12:58 AM   #1
Chris_
Newbie
 
Join Date: Oct 2007
Posts: 2
Rep Power: 0 Chris_ is on a distinguished road
Need help. (Writing text into command prompt)

Hello,
I'm quite new to the Delphi, so like I was expecting, ran into some problems.

Let's see.
1. Creating a timer - DONE
2. If timer reaches to zero, open command prompt - DONE
3. Copy / Write a text ( a string I suppose )into Command Prompt - FAILED
4. Close program - FAILED

Im stuck with subject number 3. Trying to figure this thing out about last five hours or so, seems that i'll need some help.

Thanks.
Chris_ is offline   Reply With Quote
Old Oct 27th, 2007, 3:35 AM   #2
RobEasy
Programmer
 
RobEasy's Avatar
 
Join Date: May 2006
Location: The US duhhhhh!
Posts: 42
Rep Power: 0 RobEasy is on a distinguished road
Re: Need help. (Writing text into command prompt)

Post some code, an I am pretty sure that some people will help. A common quote here is "we aren't mind readers." So please help yourself and others by posting some code
__________________
Work Hard... Play Harder!
RobEasy is offline   Reply With Quote
Old Oct 27th, 2007, 4:10 AM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Re: Need help. (Writing text into command prompt)

I don't even know what you mean by "write a text into command prompt". Do you mean output to the console? Do you mean change the prompt, itself?

Make your expectations clear. Explain how they are failing to be met. Show the code that is failing to meet them. Show all error messages accurately, as well as indications about where they occur.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 27th, 2007, 9:06 AM   #4
Chris_
Newbie
 
Join Date: Oct 2007
Posts: 2
Rep Power: 0 Chris_ is on a distinguished road
Re: Need help. (Writing text into command prompt)

Thanks for the reply's.
I got it working, it was easy. I can't believe how dumb i was and couldn't figure this out in first 10 seconds.

ExecuteShellCommand (' ', True);
I just didn't write anything between the ' '. Thats why it wasn't working.

Next time, I'll give more information. First time always goes wrong.

Peace.
Chris_ is offline   Reply With Quote
Old Oct 30th, 2007, 12:51 AM   #5
RobEasy
Programmer
 
RobEasy's Avatar
 
Join Date: May 2006
Location: The US duhhhhh!
Posts: 42
Rep Power: 0 RobEasy is on a distinguished road
Re: Need help. (Writing text into command prompt)

Not really wrong, just not completely informative, you learned your lesson.
__________________
Work Hard... Play Harder!
RobEasy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing to a text file. BungalowBill Java 2 Mar 19th, 2007 8:09 AM
[perl] graphical text editor glimmy Existing Project Development 0 Aug 6th, 2006 11:47 PM
How to detect cursor location and insert text??? syntax-error C# 3 Jun 30th, 2005 1:42 AM
Over writing text in a .txt file? cloud- Visual Basic 1 Apr 13th, 2005 12:43 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:30 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC