Search found 5 matches

by simong42
Thu 19 Dec 2019, 21:34
Forum: BBC BASIC language
Topic: Which file did I just open?
Replies: 3
Views: 680

Re: Which file did I just open?

My apologies if I've caused irritation by not looking in the Wiki. I had a problem … I looked for an answer in the BBC4W help and didn't find it … it simply didn't occur to me that there was a wiki too. Yes, the wiki is referenced in the help, but I wasn't searching for the wiki, I was searching for...
by simong42
Wed 18 Dec 2019, 19:21
Forum: BBC BASIC language
Topic: Which file did I just open?
Replies: 3
Views: 680

Which file did I just open?

I often use OPENIN with a wildcard such as *.txt to browse to the file I want.
I get the channel number returned if I open a file, but is there any way to derive the file that I just opened?
by simong42
Wed 13 Mar 2019, 19:26
Forum: Database and Files
Topic: Getting file information
Replies: 4
Views: 5183

Getting file information

I'm trying to access information about a specific file - in particular, the creation date/time. I can do this by generating a directory listing (thanks to this forum for their help in resolving my "dir /s" query), but for some reason, I get different date/times when looking at the file on different ...
by simong42
Fri 08 Mar 2019, 06:22
Forum: Database and Files
Topic: Trying to get "dir /s ..." to work from BASIC
Replies: 6
Views: 5259

Re: Trying to get "dir /s ..." to work from BASIC

Ah, it's the "leading *" that does it. Many thanks.

The /s switch, by the way, makes a directory list include all subdirectories.
by simong42
Tue 05 Mar 2019, 20:48
Forum: Database and Files
Topic: Trying to get "dir /s ..." to work from BASIC
Replies: 6
Views: 5259

Trying to get "dir /s ..." to work from BASIC

I'm trying to execute a 'dir' command from within BASIC but failing. The command (without the single quotes) is 'dir /s "D:\all files\photos\*.*" > ./dlist.txt', i.e. a recursive directory command, with output directed to a text file. This works when pasted into a DOS window. However, when I try and...