EvilAlchemist
2[H]4U
- Joined
- Jan 11, 2008
- Messages
- 2,730
About 6 years ago, I worked for a very small Sheriff Dept and plan to go back there soon.
While, I was there, I wrote a simply bat file to help with reports.
Here is the original code (well the chunk I need help with)
I have been working with Visual Studio 2012 and learning very much so far ..
Can anyone point me to some resources on where I can learn to replicate this in the new program.
It basically had them enter last five of case number ( year was auto based on system)
Copy or open based on if it existed ...
I want to learn this so any help would be beneficial.
While, I was there, I wrote a simply bat file to help with reports.
Here is the original code (well the chunk I need help with)
Code:
set Case=
set /P Case= Enter the Last Five of MCSD Case Number: %=%
if "%Case%"=="" goto input
echo.
echo.
echo.
echo Your Case Numbers Is: %Year%-C-%Case%
echo.
echo.
:: Confirm Case Number before Case Number is Saved in Batch File
:choice
set /P c= Is the Case Number Correct? [Y/N]?
if /I "%c%" EQU "Y" goto :TIBRS2
if /I "%c%" EQU "N" goto :ManualTIBRS
:TIBRS2
::Duplicate file CheCK
IF EXIST \\Mcj_pdc\DeputyReports\TIBRS\%Year%-C-%Case%.pdf (goto TIBRS3) ELSE (echo.)
copy "\\Mcj_pdc\DeputyReports\MasterForms\TIBRS.pdf" \\Mcj_pdc\DeputyReports\TIBRS\%Year%-C-%Case%.pdf
:TIBRS3
start AcroRd32.exe /A "navpanes=0&messages=0" \\Mcj_pdc\DeputyReports\TIBRS\%Year%-C-%Case%.pdf
goto menu
I have been working with Visual Studio 2012 and learning very much so far ..
Can anyone point me to some resources on where I can learn to replicate this in the new program.
It basically had them enter last five of case number ( year was auto based on system)
Copy or open based on if it existed ...
I want to learn this so any help would be beneficial.