MSI Factory 2.3

Shell.Execute

Shell.Execute

This is the first topic This is the last topic  

Shell.Execute

This is the first topic This is the last topic  

OverviewExamples

number Shell.Execute (

string Filename,

string Verb = "open",

string Arguments = "",

string WorkingFolder = "",

number WindowMode = SW_SHOWNORMAL,

boolean WaitForReturn = false )

Example 1

MyDocs = Shell.GetFolder(SHF_MYDOCUMENTS);    -- Gets the path to the user's My Documents folder

Shell.Execute(MyDocs .. "\\CompanyInfo.htm", "edit", "", "", SW_SHOWNORMAL);

The first line uses the Shell.GetFolder action to get the path to the user's My Documents folder and stores it in the variable "MyDocs." The file "CompanyInfo.htm" is then opened using the "edit" verb of the Shell.Execute action. This will open the file in the user's associated editor for .htm files.

Example 2

-- Call a file

Shell.Execute(_TempFolder.."\\Myfile.exe", "open", "", "", SW_SHOWNORMAL);

Runs "Myfile.exe" located in the user's temporary directory.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us