Click here to Skip to main content
13,705,515 members

Windows API

 
AnswerRe: Client Universall App WebApi Pin
Richard Deeming2-Nov-15 2:17
mvpRichard Deeming2-Nov-15 2:17 
GeneralRe: Client Universall App WebApi Pin
Paolo Mazzon2-Nov-15 18:52
memberPaolo Mazzon2-Nov-15 18:52 
QuestionUse CreatePrintAsyncNotifyChannel to communicate from Server Port to Client Driver Pin
7-Aug-15 3:03
member7-Aug-15 3:03 
QuestionWindows 8.1 Event log problem Pin
zeki yugnak24-Jun-15 3:32
memberzeki yugnak24-Jun-15 3:32 
AnswerRe: Windows 8.1 Event log problem Pin
Nitzan Levi22-Aug-15 22:11
memberNitzan Levi22-Aug-15 22:11 
GeneralRe: Windows 8.1 Event log problem Pin
Richard Andrew x6412-Nov-15 3:11
professionalRichard Andrew x6412-Nov-15 3:11 
GeneralRe: Windows 8.1 Event log problem Pin
Nitzan Levi12-Nov-15 7:51
memberNitzan Levi12-Nov-15 7:51 
QuestionTerminal: Schedule a program with main method arguments Pin
Mc_Topaz26-May-15 4:39
memberMc_Topaz26-May-15 4:39 
I would like to run a program with the Windows Scheduler.
I can create the task with the GUI in the Task Scheduler (taskschd.msc) but would prefer to create the task by the terminal with the schtasks command.

The problem is that my program need one argument for the main method and I'm unable to create a task and specify the argument in the command. In the Windows Scheduler I can specify the argument with no problem. But as I said, I would prefer to create the task in the terminal.

I can have notepad started each minute with this command:
schtasks /create /sc minute /mo 1 /tn "RunNotepad" /tr notepad /st 16:03

Starting notepad from the terminal and opening an existing file with this command:
notepad "C:\ProgramData\Test\hello there.txt"

So I "thought" I could combine them:
schtasks /create /sc minute /mo 1 /tn "RunNotepad" /tr notepad "C:\ProgramData\Test\hello there.txt" /st 16:03


Unfortunately that didn't work. I get an error message saying that C:\ProgramData\Test\hello there.txt is an invalid argument.

Any solutions?
AnswerRe: Terminal: Schedule a program with main method arguments Pin
Richard Andrew x6426-May-15 5:35
professionalRichard Andrew x6426-May-15 5:35 
GeneralRe: Terminal: Schedule a program with main method arguments Pin
Mc_Topaz26-May-15 8:11
memberMc_Topaz26-May-15 8:11 
GeneralRe: Terminal: Schedule a program with main method arguments Pin
Graham Breach26-May-15 22:14
memberGraham Breach26-May-15 22:14 
GeneralRe: Terminal: Schedule a program with main method arguments Pin
Mc_Topaz26-May-15 22:51
memberMc_Topaz26-May-15 22:51 
QuestionEasyhook error:STATUS_INVALID_PARAMETER_4:The given 32-Bit library does not exist!<Code: 2> Pin
13-May-15 17:10
member13-May-15 17:10 
AnswerRe: Easyhook error:STATUS_INVALID_PARAMETER_4:The given 32-Bit library does not exist!<Code: 2> Pin
Frankie-C14-May-15 1:41
memberFrankie-C14-May-15 1:41 
QuestionMultiple Client Support Server Application designed with Windows Named Pipes hangs frequently Pin
SRIVATHSAN VIJAYA20-Apr-15 23:17
memberSRIVATHSAN VIJAYA20-Apr-15 23:17 
AnswerRe: Multiple Client Support Server Application designed with Windows Named Pipes hangs frequently Pin
Richard MacCutchan20-Apr-15 23:32
protectorRichard MacCutchan20-Apr-15 23:32 
AnswerRe: Multiple Client Support Server Application designed with Windows Named Pipes hangs frequently Pin
Frankie-C24-Apr-15 5:32
memberFrankie-C24-Apr-15 5:32 
QuestionPCI driver Pin
6-Apr-15 2:04
member6-Apr-15 2:04 
Answer[REPOST] Re: PCI driver Pin
Sascha Lefèvre6-Apr-15 2:43
memberSascha Lefèvre6-Apr-15 2:43 
QuestionC/C++ - Win32 : how can i find memory leaks? Pin
22-Mar-15 8:34
member22-Mar-15 8:34 
QuestionRe: C/C++ - Win32 : how can i find memory leaks? Pin
Richard MacCutchan22-Mar-15 22:00
protectorRichard MacCutchan22-Mar-15 22:00 
AnswerRe: C/C++ - Win32 : how can i find memory leaks? Pin
23-Mar-15 11:35
member23-Mar-15 11:35 
QuestionRe: C/C++ - Win32 : how can i find memory leaks? Pin
Richard MacCutchan23-Mar-15 22:11
protectorRichard MacCutchan23-Mar-15 22:11 
AnswerRe: C/C++ - Win32 : how can i find memory leaks? Pin
Jochen Arndt22-Mar-15 22:20
professionalJochen Arndt22-Mar-15 22:20 
GeneralRe: C/C++ - Win32 : how can i find memory leaks? Pin
23-Mar-15 11:34
member23-Mar-15 11:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web04-2016 | 2.8.180920.1 | Last Updated 10 Feb 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid