Win-PS2EXE | Graphical frontend to PS1-to-EXE-compiler PS2EXE.ps1 | Command Line Interface library
kandi X-RAY | Win-PS2EXE Summary
kandi X-RAY | Win-PS2EXE Summary
Graphical frontend to PS1-to-EXE-compiler PS2EXE.ps1
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Win-PS2EXE
Win-PS2EXE Key Features
Win-PS2EXE Examples and Code Snippets
Community Discussions
Trending Discussions on Win-PS2EXE
QUESTION
I am trying to suppress the output of a command while setting a variable. I need to do this because I have compiled the PowerShell Script using PS2EXE-GUI. This program shows all command output on a seperate window, which is very annoying and is not necessary. I am trying to use Get-ChildItem "$MYSQLFOLDERLOCATION" | Out-String | Write-Host
, but this only works when there is nothing in the directory, anything else, and it shows the directory contents on the screen. I have also been trying to use Get-ChildItem "$MYSQLFOLDERLOCATION" | $ISMYSQLFOLDERPRESENT = $? | Out-Null
, but this is syntactically incorrect. Is there something similar to this that I can use? I basically want to do an ls-equivalent command in PowerShell, then store whether it succeeded or not, while not showing anything on screen (I can't use Write-Output, Write-Host, etc.)
ANSWER
Answered 2020-Oct-21 at 17:04You need to assign the entire expression to a variable - otherwise any resulting output will "bubble up" to the caller and you'll see it on the screen:
QUESTION
I created a fairly big PowerShell Script working with the Exce COM Object to Output Data it read into some .ini files. I converted the Script to .exe with the Win-PS2EXE Programm.
When I start the Script on my Fujitsu PC it creates and then populates the Files. When my Collegue uses it on his Lenovo, the files get created (So it can't be a filepath problem) but there isn't any data that gets written into them.
My Fujitsu
- Windows Version 10.0.017134 Build 17134 (Everything is the Same)
- PowerShell Version 5.1.17134.858 (Everything is the Same)
- All Excels fully closed
- No Clicking around when it's taking a while
- Script version 3.8
- Microsoft 360 Account with newest Excel
- Same Excel File Used
His Lenovo
- Windows Version 10.0.017134 Build 17134 (Everything is the Same)
- PowerShell Version 5.1.17134.858 (Everything is the Same)
- All Excels fully closed
- No Clicking around when it's taking a while
- Script version 3.8
- Microsoft 360 Account with newest Excel
- Same Excel File Used
The Script itself works. It was tested and debugged over multiple Months and it always worked (on multiple, different systems) with no Errors. Where could the problem be or what could I try to do?
...ANSWER
Answered 2020-Mar-30 at 08:55So, I don't know why or how, but the Excel itself is broken after I transfer it to his PC. (All Permissions etc. are set so that the excel works and everything.)
I copied the Data in the Excel into a new Excel File, which I transferred the same way again (Network Folders). This time it worked.
All in all, the Excel File itself has some Corruption. I may look into it and if I find a Solution I'm going to post it here.
For now I know the Script has no Error and works on all other Systems.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Win-PS2EXE
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page