Note the quotes around test.txt. I tried with the full pathperl test.pl --file='test.txt' ... Could not open 'test.txt': No such file or directory at test.pl
Script and file are in the same directory. Any help appreciatedperl test.pl --file='C:\scripts\test.txt' ... Could not open 'C:\scripts\test.txt': Invalid argument at test.pl
In reply to How to pass Windows filepaths on command line by bangor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |