Members
  • Total Members: 14176
  • Latest: toxxxa
Stats
  • Total Posts: 42955
  • Total Topics: 16151
  • Online Today: 4651
  • Online Ever: 51419
  • (01. January 2010., 10:27:49)









Author Topic: windows 8: how to start a batch file minimized with task scheduler?  (Read 5299 times)

0 Members and 1 Guest are viewing this topic.

devnullius

  • SCF VIP Member
  • *****
  • Posts: 3614
  • KARMA: 157
  • Gender: Female
    • SCForum.info
Copy-Paste from: http://stackoverflow.com/questions/18881221/windows-8-how-to-start-a-batch-file-minimized-with-task-scheduler-comspec-me *

I hope somebody at scforum.info has more insight in this problem...?

"windows 8: how to start a batch file minimized with task scheduler? %comspec% method not working anymore after Windows 7

After Windows XP, I always use the trick below to start batch files minimized with Windows Task Manager.

FROM: http://www.pcreview.co.uk/forums/running-bat-files-minimized-scheduler-t2125918.html 
"prequisite: all your batch files have an exit-command to fnish the actions off. If you do not exit, you will end with a command prompt blinking.

This is what I keep using: %comspec% /c start /min "C:\Scripts\Destination_inbound_ftp5.bat"

When you save this in the properties, you will get a follow-up dialogue asking you if you ment all this to be parameters or not. Answer NO and the task will be saved as you would expect.

Thank you David Lipman, Sept 7th 2005 :)"

I also read this article: http://stackoverflow.com/questions/8121238/start-comspec-c-script-cmd-vs-start-cmd-c-second-cmd-script-cmd , which made me replace the "%comspec%" statement with "C:\Windows\system32\cmd.exe", but that did not change anything either.

The problem is that now, instead of a minimized running bat file, I end up with just a command prompt, minimized but without any of the batch commands executed. The task scheduler status remains "running" :(

Anyone an idea how to get this done on Windows 8 (x64)?? Preferrable with old-school batch commands instead of powershell (or worse ;p)

Help me help you! https://copy.com/?r=zOEhNk  - Clear 15GB of cloud storage and... 

... Peace for you :)

Devvie

~~~ notemail@facebook.com ~~~

Cuisvis hominis est errare, nullius nisi insipientis in errore persevare
——
All spelling mistakes are my own and may only be distributed under the GNU General Public License! – (© 95-1 by Coredump; 2-013 by DevNullius)"



* and I also copy pasted that one to http://www.pcreview.co.uk/forums/cross-post-w2k-forum-running-bat-files-minimized-scheduler-windows-8-x64-t4060423.html#post14203849
More information about bitcoin, altcoin & crypto in general? GO TO  j.gs/7385484/btc

Cuisvis hominis est errare, nullius nisi insipientis in errore persevare... So why not get the real SCForum employees to help YOUR troubled computer!!! SCF Remote PC Assist http://goo.gl/n1ONa9

Samker's Computer Forum - SCforum.info


devnullius

  • SCF VIP Member
  • *****
  • Posts: 3614
  • KARMA: 157
  • Gender: Female
    • SCForum.info
Re: windows 8: how to start a batch file minimized with task scheduler?
« Reply #1 on: 20. September 2013., 15:23:51 »
Foxidrive (http://stackoverflow.com/users/2299431/foxidrive) answered my question beautiful!!!

FROM: http://stackoverflow.com/a/18885450/2792969

The start command needs the leading "" quotes to disable the title feature.

Try scheduling this:
%comspec% /c start "" /min "C:\Scripts\Destination_inbound_ftp5.bat"

Worked like a charm...

Karma!

devnullius
More information about bitcoin, altcoin & crypto in general? GO TO  j.gs/7385484/btc

Cuisvis hominis est errare, nullius nisi insipientis in errore persevare... So why not get the real SCForum employees to help YOUR troubled computer!!! SCF Remote PC Assist http://goo.gl/n1ONa9

Samker's Computer Forum - SCforum.info

Re: windows 8: how to start a batch file minimized with task scheduler?
« Reply #1 on: 20. September 2013., 15:23:51 »

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
Second Anti-Bot trap, type or simply copy-paste below (only the red letters):www.scforum.info:

Enter your email address to receive daily email with 'SCforum.info - Samker's Computer Forum' newest content:

Terms of Use | Privacy Policy | Advertising