EmuNewz Network
Problem Running Batch File - Printable Version

+- EmuNewz Network (https://www.emunewz.net/forum)
+-- Forum: PSP Emulation (https://www.emunewz.net/forum/forumdisplay.php?fid=191)
+--- Forum: JPCSP Official Forum (https://www.emunewz.net/forum/forumdisplay.php?fid=51)
+---- Forum: General discussion (https://www.emunewz.net/forum/forumdisplay.php?fid=57)
+---- Thread: Problem Running Batch File (/showthread.php?tid=148640)



Problem Running Batch File - Fortis931 - 07-02-2013

    Looks like I need to run the batch file into admin privilege to run it unlike before. Can anyone help me run the batch file without running it with admin privilege. My problem all started when I install Wiimms Iso Tools in my pc and when I uninstall it and run the batch I need admin privilege to run it please help me. Sorry for my bad english.


RE: Problem Running Batch File - montcer9012 - 07-08-2013

Which JPCSP version are you using? It seems that your Windows is not recognizing "findstr"; maybe it has to be replaced by the absolute patch.

For now, you can try a basic batch that runs the emulator; try place this one on your JPCSP main folder (I will attach it for you):
Code:
@echo off
rem CD to the path of the command line, this is required when running as an administrator
cd /D "%~dp0"

set PATH=%PATH%;lib\;lib\windows-x86\

:JAVA
set JAVA_CMD=%ProgramFiles%\Java\jre7\bin\java.exe
if not exist "%JAVA_CMD%" set JAVA_CMD=java.exe


:RUN
rem Use -Xmx768m for Windows XP, -Xmx1024m for all other Windows versions
set MAX_MEM_SIZE=1024m

echo Running Jpcsp 32bit...
"%JAVA_CMD%" -Xmx%MAX_MEM_SIZE% -Xss2m -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=64m -Djava.library.path=lib/windows-x86 -jar bin/jpcsp.jar %*
if ERRORLEVEL 1 goto PAUSE
goto END

:PAUSE
pause

:END

In case the black windows still closing without notice, while pressing Shift key, make right click somewhere on the white zone of the explorer and select "open console from here". Now, write "basic_start-windows-x86.bat" and it would start and finish there without closing.
   


RE: Problem Running Batch File - Fortis931 - 07-18-2013

Thanks a lot for your help by the way pertaining your question of what version I'm using, it doesn't matter what version I use I still need to run it with admin privileged but with your help A-Okay now Thanks again.