![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
GLOBAL MODDING TERRORIST
|
![]()
Anyone know if we can pass a command line argument to S3D?
What I want to know is if We can call S3D and have it open a given file by the command line. Here's what I want to do.... I scan the data folder and find files that match my search, that list is saved to a file. Now I have over 300 files that match my search! It's a pain to open S3D and move to that file path and open each file. Given I can read the saved scan and paths? I want S3D to open each file as I click on it. Once done in S3D, it closes and moves to the next file. Deleting the previously clicked on link. Now I can exit the program and not lose my place! Last edited by Jeff-Groves; 01-01-19 at 12:30 PM. |
![]() |
![]() |
![]() |
#2 |
CTD - it's not just a job
|
![]()
I've tried several ways Jeff, with command line stuff with a batch file, and it does not like it, though they say you can in the Help file under "Command Line Arguments". But if I try to pass a path to the file with its name, I get a Windows error message of "Windows cannot find 010 Editor.exe (command line)". I can start it from the command line fine, but not with a file path. You can start the program and -import a script etc., but not a regular file with a path. I wonder if adding a folder to the Options for 010, and having the "targets" there would then allow it to find the target file without a path? But that sort of defeats the "Search" that you've done... Maybe add a "Copy" to that folder to the script ? I'll keep noodling, because 010's command line interface is different from most other apps...
![]() Wait... I bet you have to tell 010 it's a binary file if doing a dat...
__________________
"...and bollocks to the naysayers" - Jimbuna |
![]() |
![]() |
![]() |
#3 |
GLOBAL MODDING TERRORIST
|
![]()
Not trying to pass a command line to 010.
I can call a program like S3D from in 010. I need to figure out if we can pass a command line to S3D not 010 |
![]() |
![]() |
![]() |
#4 |
CTD - it's not just a job
|
![]()
Oh... I figured you were trying to open the files found in 010... must.re-program.brain.impossible...
![]() S3D is not part of the Windows environment, so you'd need to include the path to it. Are you wanting to open a file in S3D then Jeff, with the argument, or just figure out what the valid "switches" are for S3D command line, if any?
__________________
"...and bollocks to the naysayers" - Jimbuna |
![]() |
![]() |
![]() |
#5 |
GLOBAL MODDING TERRORIST
|
![]()
Well yes in a way but the script does that.
I run the script to read a file, it takes each line as the path to the file I want S3D to open. Int Exec opens S3D but does S3D take the file path input? I should just code it and try but I'm busy. ;( |
![]() |
![]() |
![]() |
#6 |
CTD - it's not just a job
|
![]()
eh... an experiment has turned my S3Ditor install into Mr. Hyde... it took an argument, but was not nice about it, so I think I hit an internal, or else Windows did something, but now S3D won't "stop" (I can see it in Task Manager), and it won't run either, since it's already running. A re-boot and it stil won't run, though its executable is still there, and it keeps trying to re-install instead. A "repair" does not work, nor does an uninstall and re-install. It (or Windows) does not like the direct approach in a batch file the way I did it.
![]()
__________________
"...and bollocks to the naysayers" - Jimbuna |
![]() |
![]() |
![]() |
|
|