sorry if this is in the wrong section, but how do i search for a separate program from another, similar to the shell.getRunningProgram() but for a non running program, i'm trying to access the name of a file to use as a variable for my startup program.
thanks
-songsteel
finding a different program
Started by songsteel, May 18 2014 07:56 AM
6 replies to this topic
#1
Posted 18 May 2014 - 07:56 AM
#2
Posted 18 May 2014 - 11:02 AM
use fs.list(path) to get a table of the files in a given directory. You can then iterate this table to look for your file. Alternatively, if you're on 1.6 you can just use fs.find
http://computercraft.info/wiki/Fs.find
http://computercraft.info/wiki/Fs.find
#3
Posted 18 May 2014 - 11:16 PM
im meaning to find a specific program that will vary from computer to computer.
#4
Posted 19 May 2014 - 05:22 AM
Can you tell us the rules for witch file needs to be found? Because "i want to find a file" is a little vague...
#5
Posted 19 May 2014 - 06:09 AM
Like FlagHacker said, what are you looking for exactly? Do you want to find the file by name? Size? Location? Please be specific
#6
Posted 19 May 2014 - 12:38 PM
You could look through this thread:
http://www.computerc...age__hl__verify
which will most likely make no sense whatsoever. But, they did come up with a way to verify that a file is the same as another file hosted on the web (in github specifically). There is probably an easier way, but it would be less accurate.
http://www.computerc...age__hl__verify
which will most likely make no sense whatsoever. But, they did come up with a way to verify that a file is the same as another file hosted on the web (in github specifically). There is probably an easier way, but it would be less accurate.
#7
Posted 19 May 2014 - 02:16 PM
The only real way you could find different files with the same content across different computers would be to search based on the content of the program, although that may not always be consistent.
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











