.WSF - File Extension for Windows Script Files


What is WSF? WSF, short name for Windows Script File, is used as the file extension for Windows Script files. .WSF files are XML files that can be opened by XML editors. See the sample .WSF file included below.

✍: FYIcenter.com


File Extension: .WSF

MIME Type: text/xml

File Content: Windows Script

.WSF files are Windows Script files which contains source code of scripting languages supported on Windows system in XML format. When executed, .WSF files will be processed and interpreted by Windows Script Host on Windows systems. Here is a sample .WSF Windows Script file, notepad.wsf, that automatically performs a Notepad editing session in Perl script:

<?xml version="1.0" ?>
<job Id="WshShell">
<script language="PerlScript">
    $WshShell = $WScript->CreateObject("WScript.Shell");
    $WshShell->Run("notepad", 5);
    $WshShell->AppActivate("Untitled - Notepad");

    my $message = "Hello from PerlScript!\n";

    for($i=0; $i < length($message); $i++) {
	$char = substr($message, $i, 1);

.WSF Windows Script file sample: Click sample.wsf to download.

Since .WSF text files are in text format, you can use any XML editor to create or modify them. No special software is needed.

For for information on how to use .WSF Windows Script files, see links below:

2012-07-10, 10941👍, 0💬