言語別バッチビルドセット

  VC++



↓VC6 ビルドセット


home.vbs
  
Set WshShell = CreateObject( "WScript.Shell" )
strCommand1 = " mode con: cols=120 "
strCommand2 = " set PATH=C:\Program Files\Microsoft Visual Studio\COMMON\MSDev98\Bin;%PATH% "
strCommand3 = " set CL6=""C:\Program Files\Microsoft Visual Studio\VC98\Bin\cl.exe"" "
strCommand4 = " set LINK6=""C:\Program Files\Microsoft Visual Studio\VC98\Bin\link.exe"" "
strCommand5 = " set INC6=""C:\Program Files\Microsoft Visual Studio\VC98\Include"" "
strCommand6 = " set INCA=""C:\Program Files\Microsoft Visual Studio\VC98\ATL\Include"" "
strCommand7 = " set LIB6=""C:\Program Files\Microsoft Visual Studio\VC98\Lib"" "
strCommand8 = " set LIBS1=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib "
strCommand9 = " set LIBS2=shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "
strCommand10 = " prompt cpp$G"
strCommand = "cmd.exe /k" & strCommand1
strCommand = strCommand & "&" & strCommand2
strCommand = strCommand & "&" & strCommand3
strCommand = strCommand & "&" & strCommand4
strCommand = strCommand & "&" & strCommand5
strCommand = strCommand & "&" & strCommand6
strCommand = strCommand & "&" & strCommand7
strCommand = strCommand & "&" & strCommand8
strCommand = strCommand & "&" & strCommand9
strCommand = strCommand & "&" & strCommand10
Call WshShell.Run( strCommand, 3 )
  

build.bat
  
ECHO OFF
%CL6% %1.cpp /c /I%INC6% /I%INCA%
%LINK6% /LIBPATH:%LIB6% %1.obj %LIBS1% %LIBS2%
  

Visual C++ .NET 2003
  
Set AddPath=:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE
Set PATH=%AddPath%;%PATH%
Set CL7="C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe"
Set LINK7="C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe"
Set INC7="C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include"
Set LIB7="C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib"
Set LIBS1=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
Set LIBS2=shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
%CL7% lang_01.cpp /c /I%INC7%
%LINK7% /LIBPATH:%LIB7% %1.obj %LIBS1% %LIBS2%
  

Visual C++ 2005 Express Edition + SDK
  
Set AddPath=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
Set PATH=%AddPath%;%PATH%
Set CL8="C:\Program Files\Microsoft Visual Studio 8\VC\bin\cl.exe"
Set LINK8="C:\Program Files\Microsoft Visual Studio 8\VC\bin\link.exe"
Set INC81="C:\Program Files\Microsoft Visual Studio 8\VC\include"
Set INC82="C:\Program Files\Microsoft Platform SDK\Include"
Set INC83="C:\Program Files\Microsoft Platform SDK\Include\atl"
Set LIB81="C:\Program Files\Microsoft Visual Studio 8\VC\lib"
Set LIB82="C:\Program Files\Microsoft Platform SDK\Lib"
Set LIBS1=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
Set LIBS2=shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
%CL8% %1.cpp /c /I%INC81% /I%INC82% /I%INC83%
%LINK8% /LIBPATH:%LIB81% /LIBPATH:%LIB82% %1.obj %LIBS1% %LIBS2%
  

  VB.NET Framework



↓Console ビルド最新版


.NET Frameworkのバージョンを確認する方法 − @IT


home.vbs
  
Set WshShell = CreateObject( "WScript.Shell" )
strCommand1 = " mode con: cols=120 "
strCommand2 = " set PATH=%windir%\Microsoft.NET\Framework\v2.0.50727;%PATH% "
strCommand3 = " prompt vb.net$G"
strCommand = "cmd.exe /k" & strCommand1
strCommand = strCommand & "&" & strCommand2
strCommand = strCommand & "&" & strCommand3
Call WshShell.Run( strCommand, 3 )
  

↓Console ビルドセット


build.bat : Console
  
ECHO OFF
vbc.exe %1
  

↓Windows ビルドセット


build.bat : Windows
  
ECHO OFF
vbc /t:winexe /main:Form1 /out:app %1 %2
  
※ Form1 は初期フォーム名( クラス名 )
※ %2 は、追加のソースコードがある場合( 2005 では、コードとフォームが分離されている )
※ 出力ファイルは app.exe

  C#

.NET Frameworkのバージョンを確認する方法 − @IT


home.vbs
  
Set WshShell = CreateObject( "WScript.Shell" )
strCommand1 = " mode con: cols=120 "
strCommand2 = " set PATH=%windir%\Microsoft.NET\Framework\v2.0.50727;%PATH% "
strCommand3 = " prompt C#$G"
strCommand = "cmd.exe /k" & strCommand1
strCommand = strCommand & "&" & strCommand2
strCommand = strCommand & "&" & strCommand3
Call WshShell.Run( strCommand, 3 )
  

↓Console ビルドセット


build.bat : Console
  
ECHO OFF
csc.exe %1
  

↓Windows ビルドセット


build.bat : Windows
  
ECHO OFF
csc.exe /t:winexe /out:app.exe %1 %2
  

  Jscript

.NET Frameworkのバージョンを確認する方法 − @IT


home.vbs
  
Set WshShell = CreateObject( "WScript.Shell" )
strCommand1 = " mode con: cols=120 "
strCommand2 = " set PATH=%windir%\Microsoft.NET\Framework\v2.0.50727;%PATH% "
strCommand3 = " prompt JS.net$G"
strCommand = "cmd.exe /k" & strCommand1
strCommand = strCommand & "&" & strCommand2
strCommand = strCommand & "&" & strCommand3
Call WshShell.Run( strCommand, 3 )
  

↓ビルドセット


build.bat
  
ECHO OFF
jsc.exe %1
  

  Java

↓最新版



home.vbs
  
Set WshShell = CreateObject( "WScript.Shell" )
strCommand1 = " mode con: cols=120 "
strCommand2 = " set PATH=C:\Program Files\Java\jdk1.5.0_11\bin;%PATH% "
strCommand3 = " set CLASSPATH=.;.\swing-layout-1.0.jar "
strCommand4 = " prompt java$G"
strCommand = "cmd.exe /k" & strCommand1
strCommand = strCommand & "&" & strCommand2
strCommand = strCommand & "&" & strCommand3
strCommand = strCommand & "&" & strCommand4
Call WshShell.Run( strCommand, 3 )
  

↓Java ビルドセット


build.bat
  
ECHO OFF
javac.exe -cp .\swing-layout-1.0.jar %1
  

実行は、home.vbs によって開かれるコマンドプロンプト上で、
java クラス名 または javaw クラス名


※ swing-layout-1.0.jar は、NetBeans に付属していたものです











   SQLの窓    create:2007/07/15  update:2014/09/07   管理者用(要ログイン)





フリーフォントWEBサービス

SQLの窓WEBサービス

SQLの窓フリーソフト

写真素材

一般WEBツールリンク

SQLの窓

フリーソフト

JSライブラリ