muhammadnaveed / syncnotes2google

Automatically exported from code.google.com/p/syncnotes2google
0 stars 0 forks source link

A way to schedule a hidden .bat #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Config the .bat
2. Use Windows to schedule a task to run the .bat every hour
3. A Pop up from CMD open every time the task run

What is the expected output? What do you see instead?
No appear nothing, but every hour appears a cmd windows

Original issue reported on code.google.com by rafadelb...@gmail.com on 13 Apr 2010 at 6:05

GoogleCodeExporter commented 9 years ago
I've tried this VB Script to run the .bat in the hidden mode but no success:
-----------------------------VBS----------------------------------
sBatFile = "C:\Documents and 
Settings\rnicolau\.syncnotes2google\sgtn\syncnotes2google.bat"
Set oShell = CreateObject("WScript.Shell")
oShell.Run """" & sBatFile & """", 0, True
-----------------------------VBS----------------------------------

It give an error like this:
Exception in thread "main" java.lang.NoClassDefFoundError: 
com/googlecode/syncnotes2google/SyncNotes2Google

How can I force the .bat find com.googlecode?

Regards

Original comment by rafadelb...@gmail.com on 13 Apr 2010 at 8:11

GoogleCodeExporter commented 9 years ago
I've maded.
Just need to put the VBS file together with the sync.properties file and,
in the "Run" of the task I put this:
C:\WINDOWS\system32\wscript.exe hidden.vbs
and on "Start in" just need to put the address from the root folder where 
sync.properties and hidden.vbs files are.

And it run hidden!

Original comment by rafadelb...@gmail.com on 13 Apr 2010 at 8:38