When trying to run an .exe file with a corresponding xml file in Cygwin, I get
Error: Cannot open xml file /cygdrive/c/users/file.xml from dir C:/users/directory L33 # XmlReader.cpp
The file is in the specified place...
Thanks
Is the executable trying to open the XML file a cygwin or Windows executable? Looks like you're passing a cygwin path to a Windows executable.
Related
I am trying to write a TCL/TK Script that accesses an INI File with the command [::ini::open DBW.ini]. I am using the inifile package for this and am trying to run on wish for the gui.
However, wish answers with "couldn't open "DBW.ini": no such file or directory". The odd thing about this is, that I can run this Code in the VSCode extension "Code Runner".
Code Runner is configured to access the same wish Compiler that I'm trying to run on my Windows System.
Why would I be able to run this Code through VSCode, but when im using the wish Compiler directly it throws an error message.
Thank you in advance
Most likely your Tcl code is not being executed in the same directory as where the DBW.ini file is. The Tcl command pwd will return the directory where the code is executing. If this is not where the ini file is, a simple fix would be to specify the whole path to the file when you try to open it, something like:
[::ini::open C:/some/where/DBW.ini]
I have a test_12_22.xml file. I want to see the contents of the file. How can I achieve this using command line in MAC OS Catalina.
I tried open test_12_22.xml, but it opened a Word Document with junk information.
I think you could do that with the following command
open test_12_22.xml -a TextEdit
This will open your XML file with TextEdit, which should be able to read it.
I want to silent install a software executable file using Perl coding.
I check to have a installer module to run executable file but no luck.
Kindly respond with some idea to initiate .
Would it not make sense to do something like that in a .bat or .ps1 file, using the command:
vlc-2.0.1-win32.exe /L=1033 /S
(just put the full filepath and executable file in there)?
That should result in a silent install, and looks easier for Windows than trying to use Perl? Or does it have to be Perl for whatever reason?
I am looking for a way to open a file in the windows explorer.
The file directory is stored in a QR Code, after decoding, the path gets copied to the clipboard. From there it needs to be opened in the windows explorer because the QR Decoder doesn't automatically recognize the code as a file path.
Is there a way to process a file path in Powershell and open it in the windows explorer?
If you have a recent version of Powershell then you can just do this:
explorer (Get-Clipboard)
You can open a folder in Windows Explorer via PowerShell like this:
[System.Diagnostics.Process]::Start(<FolderPath>)
Or this:
Start-Process -FilePath <FolderPath>
This also works for other items, such as URLs, which will open in your default browser.
I want to run an EXE file named "LBRM.EXE" by MATLAB.
I try:
dos('lbrm.exe')
and I get error:
'lbrm.exe' is not recognized as an internal or external command,
operable program or batch file.
Exactly the same code works fine in 32bit MATLAB.
mesh -setup did not help!
Since it appears you're not returning any arguments from the call, you could see if you have better luck with the bang operator:
!lbrm.exe
You have to add the EXE in your environmental variables in Windows or to move to the directory of the EXE file.
To move to the directory of the EXE file, use CD('EXE file folder') then you can execute your file by using the system command. system('lbrm.exe')