I am having problems using powerbasic to sort some files. The files have loing file names and what I am trying to do is generate a list of the files with a given string in them. Regardless of whether I do
shell "dir 12345*.txt /b > list" or shell to a batch file with the same dir command in it the long file names are returned in the short file name format. When I execute the batch file from the command prompt I get the long file names as expected.
I saw a similar post http://www.powerbasic.com/support/pb...long+file+name where someone was having a similar problem but the replies to the post didn't help me as I couldn't get the replies to work.
I am using windows xp and eventually I want to be able to get the following dir command to work
dir *12345*54321*.txt > list.txt
I would prefer it to work from a shell command but if i have to run in from a shelled batch file i could live with that too.
Thanks in advance
shell "dir 12345*.txt /b > list" or shell to a batch file with the same dir command in it the long file names are returned in the short file name format. When I execute the batch file from the command prompt I get the long file names as expected.
I saw a similar post http://www.powerbasic.com/support/pb...long+file+name where someone was having a similar problem but the replies to the post didn't help me as I couldn't get the replies to work.
I am using windows xp and eventually I want to be able to get the following dir command to work
dir *12345*54321*.txt > list.txt
I would prefer it to work from a shell command but if i have to run in from a shelled batch file i could live with that too.
Thanks in advance

Comment