silent

Run .bat file through C# code as different user silently

喜夏-厌秋 提交于 2019-12-10 22:00:04
问题 I am running one batch file every few seconds to do timesync with server using following code: Process process = new Process(); process.StartInfo.WorkingDirectory = Environment.GetFolderPath(Environment.SpecialFolder.System); process.StartInfo.FileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "cmd.exe"); process.StartInfo.Arguments = @"/C C:\TimeSync.bat"; process.StartInfo.CreateNoWindow = true; process.StartInfo.UseShellExecute = false; process.StartInfo

How to make a simple Hello World “invisible” in Windows (C/C++)

笑着哭i 提交于 2019-12-10 18:56:05
问题 Hello there i would like to know if it is possible to make a simple Hello World program in Windows (and then advance to actual ones) invisible. By that I mean, when I execute the program there will be no graphical indication whatsoever. No cmd printing "Hello world", no taskbar label, no system tray icon,nothing. I want the program to execute silently without bothering me. So what am I thinking here people? Is that doable? Would it be like a service? I have no idea. I would like to code it in

AudioServicesAddSystemSoundCompletion callback not getting called in silent mode

 ̄綄美尐妖づ 提交于 2019-12-10 09:52:00
问题 If I put device into silent mode using switch, AudioServicesAddSystemSoundCompletion callback method doesn't get called. If the switch is on, I mean if device is NOT in silent mode, method gets called perfectly. Has anyone experienced something like this. Is this a bug? 回答1: I had the same problem. It is not a bug. If the sound is not played, due to the device being muted the call back never gets called. A work around is to use an NSTimer that is the same length as the sound to be played. If

iOS silent push notification only works when connected to xcode

旧城冷巷雨未停 提交于 2019-12-10 03:46:58
问题 I have an odd issue. I recently updated my Xcode to 6.1.1 to make a change to an app I previously released with Xcode 5 (working great). Now for some reason with the new Xcode when I test my background silent push notification it only completely works when I have my iPhone connected to my Mac? What the app does is when it gets a silent push the app retrieves data from a server. I added the default sound to the silent push for testing, and I've confirmed that the app does get the push but it

Batch file executing a sound silently

两盒软妹~` 提交于 2019-12-08 07:36:04
问题 Would it be possible to execute a mp3 silently from batch I have tried: @echo off 1.mp3 pause It works but it doest do it silently it launches WMP. does any one know how I could accomplish this. I am making a program and the track it one of the sound effects. 回答1: Here is a Bat/VBS to play an audio file : @echo off set file=track12.mp3 ( echo Set Sound = CreateObject("WMPlayer.OCX.7"^) echo Sound.URL = "%file%" echo Sound.Controls.play echo do while Sound.currentmedia.duration = 0 echo

Non-interactive authorization with Google OAuth2

▼魔方 西西 提交于 2019-12-07 04:37:51
问题 I have created a Java application that performs syncing of MS Active Directory with Google Groups. It is non-interactive application that suppose to be executed by the cronjob at night time. It does work perfectly on my laptop (DEV environment). My problem is that on the first run it pops up browser window with the dialog asking to authorize access to the Google API. After I click on "Allow" button it happily proceeds to the end. Now I need to move it to production server which runs CentOS

Non-interactive authorization with Google OAuth2

早过忘川 提交于 2019-12-05 08:57:50
I have created a Java application that performs syncing of MS Active Directory with Google Groups. It is non-interactive application that suppose to be executed by the cronjob at night time. It does work perfectly on my laptop (DEV environment). My problem is that on the first run it pops up browser window with the dialog asking to authorize access to the Google API. After I click on "Allow" button it happily proceeds to the end. Now I need to move it to production server which runs CentOS and does not have a browser. When I run my application in this environment it prints the following

How to play Sound File In Silent Mode iPhone sdk?

有些话、适合烂在心里 提交于 2019-12-05 06:47:25
问题 How to play Sound File In Silent Mode iPhone sdk ? I m trying to play sound file in silent mode but result is zero i have tried this code SystemSoundID soundID; AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:fullpath],&soundID); AudioServicesPlaySystemSound (soundID); when i import in header file #import <AudioToolbox/AudioToolbox.h> create Error like error: expected identifier before '\x786f7073' Asnwer As Soon As Possible..... Thanks In advance Regard

iOS silent push notification only works when connected to xcode

久未见 提交于 2019-12-05 06:03:24
I have an odd issue. I recently updated my Xcode to 6.1.1 to make a change to an app I previously released with Xcode 5 (working great). Now for some reason with the new Xcode when I test my background silent push notification it only completely works when I have my iPhone connected to my Mac? What the app does is when it gets a silent push the app retrieves data from a server. I added the default sound to the silent push for testing, and I've confirmed that the app does get the push but it does not connect to the server to get the new data. But if I plug in the lightning cable to my mac

Silent Windows Installer installer without rebooting automatically

一曲冷凌霜 提交于 2019-12-05 05:26:17
Currently I have an MSI which performs a major upgrade, and it is launched as: msiexec.exe /i installer.msi /qn REBOOT=ReallySuppress My question is regarding that particular property REBOOT=ReallySuppress : does this mean it will not restart the system but will do proper changes (if applied) when user reboot her system manually? Or will it simply ignore those things that require to restart the system? Alexey Ivanov The installer performs all the operations. The value ReallySuppress of REBOOT property, or /norestart option , simply suppress system restart, if it's needed. And msiexec.exe exit