C ++ Applet无法打开 [英] C++ Applet Not Opening
本文介绍了C ++ Applet无法打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此代码有效,除了Warning.exe没有打开.是语法吗?我不认为这是摆放位置.....但是也许.
This code works, except the Warning.exe isn''t opening. Is it the syntax? I don''t think it''s the placement.....but maybe.
@echo off
cd "C:\Users\DS\Downloads"
setlocal
call :DateToMinutes %date:~-4% %date:~-10,2% %date:~-7,2% %time:~0,2% %time:~3,2% NowMins
set flag=0
for /f "delims=" %%a in (''dir *.jpg *.zip *.txt /a-d /b'') do call :CheckMins "%%a" "%%~ta"
if flag EQU 1 (
CD /d C:\RRAA\Warning\debug\
IF EXIST Warning.exe (call Warning.exe) ELSE (echo Does not exist)
)
goto :EOF
:CheckMins
set File=%1
set TimeStamp=%2
call :DateToMinutes %timestamp:~7,4% %timestamp:~1,2% %timestamp:~4,2% %timestamp:~12,2% % timestamp:~15,2%%timestamp:~18,1% FileMins
set /a MinsOld=%NowMins%-%FileMins%
if %MinsOld% leq 1 del %file%
set flag=1
goto :EOF
:DateToMinutes
setlocal
set yy=%1&set mm=%2&set dd=%3&set hh=%4&set nn=%5
if 1%yy% LSS 200 if 1%yy% LSS 170 (set yy=20%yy%) else (set yy=19%yy%)
set /a dd=100%dd%%%100,mm=100%mm%%%100
set /a z=14-mm,z/=12,y=yy+4800-z,m=mm+12*z-3,j=153*m+2
set /a j=j/5+dd+y*365+y/4-y/100+y/400-2472633
if 1%hh% LSS 20 set hh=0%hh%
if /i {%nn:~2,1%} EQU {p} if "%hh%" NEQ "12" set hh=1%hh%&set/a hh-=88
if /i {%nn:~2,1%} EQU {a} if "%hh%" EQU "12" set hh=00
if /i {%nn:~2,1%} GEQ {a} set nn=%nn:~0,2%
set /a hh=100%hh%%%100,nn=100%nn%%%100,j=j*1440+hh*60+nn
endlocal&set %6=%j%&goto :EOF
推荐答案
它是用于异步启动的"启动 Warning.exe",或仅用于运行"Warning.exe"应用程序并等待其终止.
—SA
It''s "start Warning.exe" for asynchronous start or just "Warning.exe" to run the application and wait until it terminates.
—SA
在此行发现了问题..... if标志EQU 1(
这是%flag%EQU 1(熬夜会惹上你的麻烦,这是妈妈一直在说的!妈妈没有麻烦,只是太累了无法直视!!
Found the problem its this line.....if flag EQU 1 (
It''s if %flag% EQU 1 ( Staying up late will get you in trouble is what my mother always says! No mom not trouble, just too tired to see straight!
这篇关于C ++ Applet无法打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文