Web Connection
build.bat
Gravatar is a globally recognized avatar based on your email address. build.bat
  Adam W
  All
  Mar 23, 2017 @ 04:44pm

Rick, I think WWC is generating build.bat file with one wrong line... Here is what I have in mine (project name: DriverServices):

echo off

REM Your Web Connection Install Path
set src="C:\WCONNECT"

REM The Project Path
set tgt="c:\WebConnectionProjects\DriverServices"
set appname="Driverservices"

REM force to current path even when running as Admin
md %tgt%\build
cd %tgt%\build
del *.* /q

copy %src%\*.dll

copy %src%\%appname%.exe
copy %tgt%\deploy\%appname%.ini
copy %tgt%\deploy\config.fpw

REM add 7zip to your path or in this folder for this to work
7z a %appname%_Packaged.zip *.*

pause

line:

copy %src%\%appname%.exe

should be:

copy %tgt%\deploy\%appname%.exe

Thanks, Adam

Gravatar is a globally recognized avatar based on your email address. re: build.bat
  Rick Strahl
  Adam W
  Mar 23, 2017 @ 06:13pm

Yes, but I'm not sure how you ended up with that in the first place.

Here's a new project created and hte build.bat it created:

echo off

REM Your Web Connection Install Path
set src="C:\WEBCONNECTION\FOX"

REM The Project Path
set tgt="c:\WebConnectionProjects\Test2"
set appname="Test2"

REM force to current path even when running as Admin
md %tgt%\build
cd %tgt%\build
del *.* /q

copy %src%\*.dll

copy %tgt%\deploy\%appname%.exe
copy %tgt%\deploy\%appname%.ini
copy %tgt%\deploy\config.fpw

REM add 7zip to your path or in this folder for this to work
7z a %appname%_Packaged.zip *.*

pause

Notice:

copy %tgt%\deploy\%appname%.exe

which is as it should be...

Looks like you might have changed the file at some point.

+++ Rick ---

© 1996-2017