My company has a legacy solution, written in Classic ASP/VBScript that uses the caprock.dictionary COM object in the Application scope for storing various recordsets of data.
This works fine on 32-bit Windows/IIS 6.0 but has been rumored to fail on…
I have the following Powershell code which should send an email in the background and should wait till that email with the special attribute was also sent successfully. All works fine, but for any reason I cannot release the COM-object $sent after I…
I am working on VB dotnet. In our project some of the code is written in Visual basic 6, So we used DLLs(Binaries) to use that code in our project(com objects), so we make binaries and giving reference of those binaries in our project.
We have two…
I am creating an app in c# that instantiates a COM object of the commercial software StressCheck.
I instantiate this in a wrapper class that implements the IDisposable interface. I dispose of it by calling theComInstance.Close() method within the…
I am able to retrieve it from a COM object via Reflection and run it with the MethodInfo.Invoke method.
However, I am trying to create a Delegate to be faster because I will use it in a loop. Unfortunately, I couldn't find a solution to the error…
I'm working on integrating an accounting system which objects are COM objects.
When binding one to one as follows, it works just fine.
IKernel kernel = new StandardKernel();
kernel.Bind().ToMethod(_ => { return new AcoSDKX();…
I couldn't find anything online about how to close the ComObject after making it in constrained mode. The normal procedure is to use $com.Quit(), however that is not allowed in constrained mode. Also,…
I might be asking this in the wrong place so I apologize. I'm running a PS1 file to look in a specific folder, mark the emails as read, save the attachments and send me an email. For whatever reason, marking the emails as read, doesn't always…
I am trying to save a specific Excel Sheet from a Macro Enabled Excel Workbook (xlsm) via Powershell to csv to upload it into a database. This is done via Powershell since it needs to be automated along with some more data processing etc.
The…
I am writing a script that scans files for SSNs. I've got most of it working, but this section is giving me grief and I can't find any useful documentation on it.
I'm running into an issue with skipping password protected PowerPoint files.
#Scan…
I'm having problem opening project file from Project Online (server). I want to save all online files locally. If I open project first through Desktop client and try to open that file using function FileOpenEx it works (maybe because it opens…
The following is the code which was used:
CANoe.Application mCANoeApp;
CANoe.Measurement mCANalyzerMeasurement;
CANoe.Nodes mCANoeNodes;
CANoe.Node mCANoeNode;
CANoe.Configuration mConfig;
CANoe.TestModules mTestModules;
…
I'm trying to retrieve info about Global Address List in Outlook.
It works in Powershell 5.1 but not in 7.0.3.
The Code is:
$Outlook = NEW-Object -comobject Outlook.Application
$Outlook.GetNamespace("MAPI").AddressLists("Global Address…
I'm converting a "hybrid" batch/vbs script to PowerShell and converting the "batch" portion was delightfully straightforward, but I'm struggling a bit with the VBS Conversion.
I can open a word document, but when I try to pass extra params I…