# Flash to CMD prompt

**URL:** https://forum.kirupa.com/t/flash-to-cmd-prompt/274589
**Category:** flash
**Created:** [October 31, 2008, 7:09pm UTC](https://forum.kirupa.com/t/flash-to-cmd-prompt/274589 "2008-10-31T19:09:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![spam\_killer](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@spam\_killer](https://forum.kirupa.com/u/spam_killer)
#### Post date: [October 31, 2008, 7:09pm UTC](https://forum.kirupa.com/t/flash-to-cmd-prompt/274589/1 "2008-10-31T19:09:31Z")

</div>

Hello guy, can anyone tell me how can I pass variable and command to CMD.exe from flash file? I mean, I want to replace .bat file using .swf

Okay, let say I want to copy file from my desktop to drive D:/

If I use Command:

COPY “%USERPROFILE%\DESKTOP\FILE.ANY” “D:”

So, It is possible to execute from flash movie instead \>\> maybe just pass the variable while execute CMD.exe externally?
