firlandsfarm wrote: ↑Sat Jul 25, 2020 4:56 pm
Open the Command Prompt window....
Stick all those commands in a file called AnythingYouWant.BAT When you double click it, it will execute the commands.
eg.
cd c:\Users\[user]\AppData\Roaming\Bet Angel\[name of user data folder for installation]\MarketReports\25_07_2020\MatchedBets
findstr "^" *.csv >[Combined file name].csv
You can also setup these batch files (.BAT) to run from your Windows task Scheduler for those regular end of day jobs like achiving.
If you run command.com and type "SET" and press [enter], you will see a list of all your Windows environment variables, any of these can be used in batches if you prefix and suffix them with a % sign to save you from typing/typos. Or if you log on as a different user perhaps for using a test environment they still work as they pick up the right username....and it's just good practice.
eg cd C:\Users\
%USERNAME%\AppData\Roaming\Bet Angel\[name of user data folder for installation]\MarketReports\25_07_2020\MatchedBets
Some other useful commands are:
cd : Change directory or display current directory path.
cls : Clear the window.
dir : Display list of contents of current directory.
help : Display list of commands or help about a command.
notepad : Run the Windows Notepad text editor.
type : Displays the contents of a text file.
assoc : Displays or modifies filename extension associations.
attrib : Displays or changes file attributes.
call : Calls one batch program file from another.
chkdsk : Checks a disk and displays a status report.
chkntfs : Displays or modifies the checking of disk at startup.
color : Sets the text and background colors.
comp : Compares the contents of two files or sets of files.
copy : Copies one or more files to another location. See also: xcopy
date : Displays or sets the computer's date. See also: time
del (or erase) : Deletes one or more files.
defrag : Defragment the specified storage device.
doskey : Display command history; define macros.
echo : Displays messages, or turns command echoing on/off.
edit : Runs the MS-DOS text editor. See also: notepad
exit : Closes the MS-DOS window.
fc : Compares two files or sets of files and displays the differences.
find : Searches for a text string in a file or files.
findstr : Search for a regular expression text string in a file or files.
goto : Used in a batch program file to jump to a particular line.
if : Used in a batch program file to perform conditional testing.
md (or mkdir) : Creates a directory.
more : Displays the contents of a file one screen at a time.
move : Moves one or more files from one directory to another directory.
rd (or rmdir) : Removes a directory.
rem : Used in a batch program file to identify comments.
ren (or rename) : Renames a file or files.
sort : Sorts input.
start : Starts a new window to run a specified program or command.
time : Displays or sets the computer's time. See also: date
tree : Graphically displays the directory structure of a drive or directory.
xcopy : Copies files and directory trees. See also: copy
The following internet related commands are not part of MS-DOS but can be typed at the MS-DOS command prompt:
arp : Displays ARP (address resolution protocol) translation tables.
ftp : FTP (file transfer program) to transfer files to/from server.
ipconfig : Displays internet configuration, including IP address.
netsh : Network services shell.
nslookup : Lookup IP address to/from domain name.
netstat : Displays current TCP/IP network connections and statistics.
ping : Ping the specified internet IP address or host name.
telnet : Starts a text-based telnet session to the specified host.
tftp : Transfers files to/from remote computer running TFTP service.
tracert : Traces the route to the specified IP address or host.
It's a shame people stopped learnig about DOS as soon as Windows 1.0 arrived, it's still really useful.