Link to home
Start Free TrialLog in
Avatar of StewartGilligan
StewartGilligan

asked on

writing a batch file to run reports

I am looking to write a batch file to automatically run reports from a point of sale software program.  I know nothing of batch files but here is the batch file (see below) that was currently used (but it runs different reports).   how do I know which Y and N to use?  sorry for my lack of knowledge.  thanks

REM *Unknown Command
C:
cd\sc

REM *Unknown Command

REM *Sales Journal Report
PSNEWW 1 1 NNYNYNNNYNNNNYNN YNNNNNNNN N

REM *Sales Trend Report
SLTRENDW C 2 1
Avatar of NVIT
NVIT
Flag of United States of America image

Is what you pasted the batch file that works originally?

Looks like it runs 2 things:
PSNEWW with various parameters
...and
SLTRENDW with various parameters

...how do I know which Y and N to use?
Are these "NNYNYNNNYNNNNYNN YNNNNNNNN N " your guesses or an actual working one?

Are PSNEWW and SLTRENDW also batch files? If so, you can open those files and possibly see what those parameters mean.
Avatar of StewartGilligan
StewartGilligan

ASKER

actually working now.  just wrong reports.....
Do you mean if you change the NY sequences, it runs or you expect it to run a different report? Have you tried changing it?
That is something we cannot really help with, because the reports are proprietary, and the parameters do not have any meaning to us.
ASKER CERTIFIED SOLUTION
Avatar of Carlos Ijalba
Carlos Ijalba
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thank you.  I kind of figured we would need a manual of some sort.  thanks
ps  I have another batch question so I guess I should start a different thread