Mar 19, 2011, 10:51 AM
Post #6 of 7
Assume that your three data files are called intext.txt, outtext.txt and vartext.txt
Re: [FrederickS] Search and Copy to 2 files
[In reply to]
and are stored in the "My Documents" folder and that the perl script is called splthtml.pl
and is stored in your home directory.
I will also assume that your windows login name is FredrickS and that the perl.exe is in your path.
By default, in XP, the path to "My Documents" is
C:\Documents and Settings\FredrickS\My Documents
and the Command Prompt accessory opens in the home directroy.
In this case, the path to the home directory does not make any difference.
Open the command prompt. From your start button, choose:
start\All Programs\Accessories\Command prompt.
Verify that your script is present.
At the command prompt, type: dir splthtml.pl
Verify that your input data is present.
Type: dir "C:\ Documents and Settings\FredrickS\My Documents\intext.txt"
The Quotes are required because of the spaces in the directory names.
Verify that perl is available. Type: perl -v
If you have found both files and perl, you are ready to start.
Type the following command as if it were all on one line.
It will wrap to the next line. Just keep typing, let windows take care of displaying it. Leave a single space petween the path names.
"C:\Documents and Settings\FredrickS\My Documents\intext.txt"
"C:\Documents and Settings\FredrickS\My Documents\outtext.txt"
"C:\Documents and Settings\FredrickS\My Documents\Vartext.txt"
Note: This command has nothing to do with perl.
It is the DOS command to run your perl script.
After you have it working, we can consider options to reduce the typing.