Hi
I have a question:
Is it possible to give an instruction
of ams to c:\windows\system32\cmd.exe?
Professional Software Development Tools
Hi
I have a question:
Is it possible to give an instruction
of ams to c:\windows\system32\cmd.exe?
Here is one way...
You could create a small .bat (Batch file) that will do what you need. Open the .bat with say Notepad to see how to start the program you want started, for example).
The code is in the On Show as far as AMS code goes.
Intrigued
Believe it or not, this works as well -Originally Posted by Down
File.Run("cmd", "", "", SW_SHOWNORMAL, false);
File.Run("cmd", "/k \"ipconfig\"", "", SW_SHOWNORMAL, false);
This works too
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Down ... to get more of a grasp on some of the cmd.exe directives,
at a command prompt type cmd.exe /?
or cmd.exe /? > %temp%\cmdcomms.txt , one way to dump the directives for later refereal to your Temp Folder
hth a little
Last edited by Eagle; 03-06-2006 at 08:05 PM.
Thanks!
And how can I give an instruction when cmd.exe already is open?
Remember folks:
cmd.exe for Windows running NTFS
command.com for Windows running FAT32
![]()
Last edited by Intrigued; 03-13-2006 at 05:44 PM.
Intrigued
If you are running Windows XP (2k) and have your primary partion set for C:\, then try this code in AMS (On Show of Page1 in a blank project):
Notice how the last dialog shows AFTER you close the calc.exe window.Code:File.Run("cmd", "/k ipconfig \&\& \"C:\\WINDOWS\\System32\\calc.exe\" \&\& \"C:\\WINDOWS\\System32\\desk.cpl\"", "", SW_SHOWNORMAL, false);
Hmmm...
Intrigued