Hello Gerd,
I added -userdir=D:\app to the end of the contents of the .bat file and ran
it. However, unlike when running in cmd, userdir is not recognized as
D:\app. Below is the content of the bat file.
@echo off
@rem IZPACK_JAVA is filtered in by the IzPack installer when this script is
installed
set "IZPACK_JAVA=%JAVA_HOME%"
@rem We detect the java executable to use according to the following
algorithm:
@rem
@rem 1.If the one used by the IzPack installer is available then use that;
otherwise
@rem 2.Use the java that is in the command path.
@rem
if exist "%IZPACK_JAVA%\bin\javaw.exe" (
set "LOCAL_JAVA=%IZPACK_JAVA%\bin\javaw.exe"
) else (
set LOCAL_JAVA=javaw.exe
)
echo Using java: %LOCAL_JAVA%
set basedir=%~f0
:strip
set removed=%basedir:~-1%
set basedir=%basedir:~0,-1%
if NOT "%removed%"=="\" goto strip
set SQUIRREL_SQL_HOME=%basedir%
"%LOCAL_JAVA%" -cp "%SQUIRREL_SQL_HOME%\lib\versioncheck.jar"
JavaVersionChecker 1.8 9 10 11 12 13 14
if ErrorLevel 1 goto ExitForWrongJavaVersion
:launchsquirrel
SET CP="%SQUIRREL_SQL_HOME%\squirrel-sql.jar;%SQUIRREL_SQL_HOME%\lib\*"
echo "CP=%CP%"
SET TMP_PARMS=--log-config-file "%SQUIRREL_SQL_HOME%\log4j.properties"
--squirrel-home "%SQUIRREL_SQL_HOME%" %1 %2 %3 %4 %5 %6 %7 %8 %9
@rem -Dsun.java2d.noddraw=true prevents performance problems on Win32
systems.
@rem Run with no command window. This may not work with versions of Windows
prior to XP.
@rem Remove'start "SQuirreL SQL Client" /B' for compatibility only if
necessary
start "SQuirreL SQL Client" /B "%LOCAL_JAVA%" -Dsun.awt.nopixfmt=true
-Dsun.java2d.noddraw=true -cp %CP%
-splash:"%SQUIRREL_SQL_HOME%/icons/splash.jpg" net.
sourceforge.squirrel_sql.client.Main %TMP_PARMS%
:ExitForWrongJavaVersion
-userdir D:\app
Thanks,
Wonki
2021년 3월 5일 (금) 오전 3:08, Gerd Wagner <ger...@t-...>님이 작성:
>
>
> Am 03.03.21 um 07:21 schrieb H Gz:
> > Hello Gerd,
> >
> > Thanks for the advice. I will test it by using the command
> > squirrel-sql.bat -userdir D:\app in CMD.
> >
> > But, is there any way to modify the inside of the bat file?
> A .bat-file is text file just open and edit it with some editor of your
> choice. On windows I often use this one:
> https://notepad-plus-plus.org/
>
>
> Gerd
>
>
> > Running CMD
> > every time seems cumbersome.
> > What I want is to modify the inside of the bat file (add the -userdir
> > option) and run it normally when I run the shortcut icon.
> >
> > Thanks,
> > Wonki
> >
> > 2021년 3월 1일 (월) 오전 4:54, Gerd Wagner <ger...@t-...
> > <mailto:ger...@t-...>>님이 작성:
> >
> > Hello Wonki,
> > from looking at your squirrel-sql_4.1.log I guess SQuirreL can't
> access
> > its user folder C:\Users\user\.squirrel-sql\.
> >
> > Perhaps there is a permission issue. You could check that or you may
> > configure SQuirreL to use a different user folder.
> > This can be done by using the -userdir command line parameter.
> >
> > Gerd
> >
> >
> > Am 25.02.21 um 02:50 schrieb H Gz:
> > > Hello,
> > >
> > > I installed SQuirreL and tried to open a session with Actian
> Vector
> > > v6.0, but it failed with an error.
> > > SQuirreL version has two versions, 3.7 and 4.1,
> > > In version 4.1,'Opening Session Error' and'Error occured during
> task
> > > execution: null' errors occurred.
> > > In version 3.7, opening the session was successful, but an
> > error'Error
> > > occured during task execution: null' occurred immediately after
> the
> > > session was opened. And as soon as I tried to write the alphabet
> > in an
> > > open session, SQuirreL stopped (no menu clicks, no writing).
> > >
> > > SQuirreL interlocking attempts and considerations are as follows.
> I
> > > checked all of the following and repeated the reinstallation
> > dozens of
> > > times.
> > >
> > > 1. Java settings
> > > -Reinstall Java (jdk 1.8 and jre 1.8). Previously, only jre 1.8
> was
> > > installed
> > > -Java environment variable modification. Setting jdk directory as
> > user
> > > variable and system variable.
> > > Previously, only the jre directory was set as a variable, and
> > only the
> > > system variable was set.
> > >
> > > 2. Reinstall SQuirreL
> > > -Proceed by installing version 3.7 and 4.1 respectively
> > > -Try alternately installing the installation location to drive C
> > and drive D
> > > -Set the installation location address to contain only English.
> > >
> > > 3. iijdbc file (Actian Vector JDBC driver)
> > > -Try using the iijdbc.jar file in version 4.3.7 and 4.4
> respectively.
> > >
> > > 4. Find and delete the temp directory and Windows registry used
> when
> > > installing SQuirreL and repeat the process
> > >
> > > How can I do?
> > >
> > > I also attached a log recorded when an error occurred.
> > >
> > > Thanks,
> > > Wonki
> > >
> > >
> > > _______________________________________________
> > > Squirrel-sql-users mailing list
> > > Squ...@li...
> > <mailto:Squ...@li...>
> > > https://lists.sourceforge.net/lists/listinfo/squirrel-sql-users
> > <https://lists.sourceforge.net/lists/listinfo/squirrel-sql-users>
> > >
> >
>
|