Yes, most simple batch files will work under XP. Just put them in a file
ending in ".BAT", then double-click within windows explorer, or type file
anme within a command prompt. I do this frequently with COPY and XCOPY.
However, not all old DOS commands work under XP. Try using the built-in
help function, or trial and error, to discover which ones do work. Note
that driect access of peripherals may be difficult under XP, since much of
its stability comes from controlling such actions.