# Calling a command line function

**URL:** <https://forum.kirupa.com/t/calling-a-command-line-function/230826>\
**Category:** Uncategorized\
**Created:** [June 29, 2007, 6:41am UTC](https://forum.kirupa.com/t/calling-a-command-line-function/230826 "2007-06-29T06:41:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kernel\_flash](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@kernel\_flash](https://forum.kirupa.com/u/kernel_flash)\
**Post date:** [June 29, 2007, 6:41am UTC](https://forum.kirupa.com/t/calling-a-command-line-function/230826/1 "2007-06-29T06:41:30Z")

</div>

Hi all,

I have a weird requirement over here.

I want to make a command prompt call from javascript and also able to pass arguments to it.

say for example copy command.

I can open command prompt and write  
copy C: ext.txt e: ext.txt  
to copy text.txt from c to e drive

However I want to achieve the same from javascript.

Given all the rights and activeXObject permission tell me what is the way i can achieve this.  
Is there any javascript object which can help me to do this?

Thanks
