@echo off

if not exist content md content

rem The select query must contain two fields only: a file name and a content
rem The fourth parameter uses the file name field as content\alias.htm

gsqlcmd exec website.com "SELECT alias, content FROM content" content\alias.htm /toFiles /outputCodepage=65001 /echo

start content

@pause
