Scope-IT / marksman

Windows agent for Snipe-IT asset management system
Apache License 2.0
129 stars 23 forks source link

Silently Run #10

Open mwolfe1 opened 5 years ago

mwolfe1 commented 5 years ago

Is there an option to get this to silently run? If not I would like to request it as a feature.

velaar commented 5 years ago

How silently? In my production environment, It runs through a vbs script to hide the console window. (Sorry, it's a windows limitation). If you like I can post the script here.

@danielhogg Is there a way to hide the console in C#?

mwolfe1 commented 5 years ago

I mostly just want to hide the window. If you could post it that would be great.

CCUKAaron commented 5 years ago

Can't help but concur with velaar. vbscript is your friend for that particular task..

velaar commented 5 years ago

Something as simple as:

strCommand = """\PathToMarksman\marksman.exe"""
Set objShell = CreateObject("WScript.Shell")
objShell.Run strCommand, 0, True

will do the job.