|
Post by daspud on Feb 21, 2022 3:51:00 GMT 1
I have a situation where I would like to be able to launch Windows Explorer from the app I am running in vDOS. It is a situation where the user needs to deal with a file created in vDOS that needs further processing in Windows and I was hoping to make it easy by opening explorer in the folder containing the file. I know what the "real" file location is and could supply that to explorer at the time it is launched.
Thanks, Bob Roos
|
|
|
Post by Jos on Feb 21, 2022 8:21:28 GMT 1
Execute the Windows command line processor by: cmd.exe
Command line: HIDE/c explorer.exe Windows_directory_path
The HIDE option will be stripped by vDos, and runs the command line processor minimized.
Alternatively, if the programs allows that and the file is to be opened with an associated Windows program, ‘execute’ the file directly.
Jos
|
|
|
Post by daspud on Feb 23, 2022 6:33:42 GMT 1
Thank you, but I am a little confused. My program can run a DOS command. I am assuming the same sort of this would be used to get to the windows command, but I can't get any response.
What I use within my program is: Run('c:\mydospgm.exe ') and that works as expected. If I say Run('cmd.exe HIDE/c explorer') I don't get anything visible and nothing that I recognize shows up in the vdos.log file. But if I type "cmd.exe HIDE/c explorer" [without quotes] at a vdos command prompt I get a window with the windows explorer.
Any thoughts as to why it is not "exploring"?
Thanks.
|
|
|
Post by Jos on Feb 23, 2022 10:01:08 GMT 1
When you type "cmd.exe HIDE/c explorer" at the vDos command prompt, the line is split into the executable part (cmd.exe) and the command line parameters (/c explorer, HIDE is stripped) to cmd.exe.
I don’t know what your programming language expects with the Run command. Could be it has to be Run(‘executable’, ‘parameters’) or something likewise. It seemingly doesn’t start a second shell (command.com). Then Run('cmd.exe HIDE/c explorer') would work, as Run(‘dir’) would.
Jos
|
|
|
Post by daspud on Feb 25, 2022 5:25:21 GMT 1
resorted to executing a bat file and got explorer to show the location of the files.
Thanks for your help. It seemed that the text after the program to run was ignored and I don't know how to make it do otherwise so the bat was the perfect solution.
|
|