Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Dec 2nd, 2005, 10:00 AM   #1
ProjectX
Programmer
 
ProjectX's Avatar
 
Join Date: Feb 2005
Posts: 37
Rep Power: 0 ProjectX is on a distinguished road
cmd commands

Hey guys I made a small program but I want it to be able to execute DOS comands like cls to clear the screen. So how do i do it. like if the screen fills up with all kind of text I just want it to be able to clear the screen.
ProjectX is offline   Reply With Quote
Old Dec 2nd, 2005, 10:41 AM   #2
eclipsed4utoo
Newbie
 
Join Date: Dec 2005
Posts: 7
Rep Power: 0 eclipsed4utoo is on a distinguished road
you mean like using DOS commands in the Perl script?

like....
# directory command
$cmd = "dir";
system($cmd);

you mean something like that?
eclipsed4utoo is offline   Reply With Quote
Old Dec 2nd, 2005, 11:06 AM   #3
ProjectX
Programmer
 
ProjectX's Avatar
 
Join Date: Feb 2005
Posts: 37
Rep Power: 0 ProjectX is on a distinguished road
yeah thats right

EDIT: Thanks alot
ProjectX is offline   Reply With Quote
Old Dec 2nd, 2005, 12:12 PM   #4
eclipsed4utoo
Newbie
 
Join Date: Dec 2005
Posts: 7
Rep Power: 0 eclipsed4utoo is on a distinguished road
no problem
eclipsed4utoo 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




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

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