Sign in to follow this  
Followers 0
Spikeedoodles

Running Commands From External Command Prompt

2 posts in this topic

Heyo!

So I'm working on a little personal project and could use some help.  The basis of this project is to run commands from a USB Drive (Forensics tools).  However, the cmd.exe application will also be on the USB Drive and can't run from the normal /system32 directory.  So this means the typical @Comspec is out, I think at least.  Oh, and it would be best to keep the command prompt hidden if possible, but it isn't necessary (GUIS change more data, blah blah blah).  Is there any way to do this cleanly?

Share this post


Link to post
Share on other sites



If you want to run the cmd.exe from your drive from a script then put your script on your thumb drive and add the path to your cmd.exe:

$hWnd = Run(@ScriptDir & "cmd.exe","",@SW_HIDE)

This will run cmd and hide it from the taskbar. You can still see it running in the task manager.


Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0