Click here to Skip to main content
13,764,207 members

Windows API

 
AnswerRe: Client Universall App WebApi Pin
Richard Deeming2-Nov-15 3:17
mvpRichard Deeming2-Nov-15 3:17 
GeneralRe: Client Universall App WebApi Pin
Paolo Mazzon2-Nov-15 19:52
memberPaolo Mazzon2-Nov-15 19:52 
QuestionUse CreatePrintAsyncNotifyChannel to communicate from Server Port to Client Driver Pin
Member 118933017-Aug-15 4:03
memberMember 118933017-Aug-15 4:03 
QuestionWindows 8.1 Event log problem Pin
zeki yugnak24-Jun-15 4:32
memberzeki yugnak24-Jun-15 4:32 
AnswerRe: Windows 8.1 Event log problem Pin
Nitzan Levi22-Aug-15 23:11
memberNitzan Levi22-Aug-15 23:11 
GeneralRe: Windows 8.1 Event log problem Pin
Richard Andrew x6412-Nov-15 4:11
professionalRichard Andrew x6412-Nov-15 4:11 
GeneralRe: Windows 8.1 Event log problem Pin
Nitzan Levi12-Nov-15 8:51
memberNitzan Levi12-Nov-15 8:51 
QuestionTerminal: Schedule a program with main method arguments Pin
Mc_Topaz26-May-15 5:39
memberMc_Topaz26-May-15 5: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 6:35
professionalRichard Andrew x6426-May-15 6:35 
GeneralRe: Terminal: Schedule a program with main method arguments Pin
Mc_Topaz26-May-15 9:11
memberMc_Topaz26-May-15 9:11 
GeneralRe: Terminal: Schedule a program with main method arguments Pin
Graham Breach26-May-15 23:14
memberGraham Breach26-May-15 23:14 
GeneralRe: Terminal: Schedule a program with main method arguments Pin
Mc_Topaz26-May-15 23:51
memberMc_Topaz26-May-15 23:51 
QuestionEasyhook error:STATUS_INVALID_PARAMETER_4:The given 32-Bit library does not exist!<Code: 2> Pin
Member 1159616813-May-15 18:10
memberMember 1159616813-May-15 18:10 
AnswerRe: Easyhook error:STATUS_INVALID_PARAMETER_4:The given 32-Bit library does not exist!<Code: 2> Pin
Frankie-C14-May-15 2:41
memberFrankie-C14-May-15 2:41 
QuestionMultiple Client Support Server Application designed with Windows Named Pipes hangs frequently Pin
SRIVATHSAN VIJAYA21-Apr-15 0:17
memberSRIVATHSAN VIJAYA21-Apr-15 0:17 
AnswerRe: Multiple Client Support Server Application designed with Windows Named Pipes hangs frequently Pin
Richard MacCutchan21-Apr-15 0:32
protectorRichard MacCutchan21-Apr-15 0:32 
AnswerRe: Multiple Client Support Server Application designed with Windows Named Pipes hangs frequently Pin
Frankie-C24-Apr-15 6:32
memberFrankie-C24-Apr-15 6:32 
QuestionPCI driver Pin
Member 115839296-Apr-15 3:04
memberMember 115839296-Apr-15 3:04 
Answer[REPOST] Re: PCI driver Pin
Sascha Lefèvre6-Apr-15 3:43
professionalSascha Lefèvre6-Apr-15 3:43 
QuestionC/C++ - Win32 : how can i find memory leaks? Pin
Member 1154582422-Mar-15 9:34
memberMember 1154582422-Mar-15 9:34 
QuestionRe: C/C++ - Win32 : how can i find memory leaks? Pin
Richard MacCutchan22-Mar-15 23:00
protectorRichard MacCutchan22-Mar-15 23:00 
AnswerRe: C/C++ - Win32 : how can i find memory leaks? Pin
Member 1154582423-Mar-15 12:35
memberMember 1154582423-Mar-15 12:35 
QuestionRe: C/C++ - Win32 : how can i find memory leaks? Pin
Richard MacCutchan23-Mar-15 23:11
protectorRichard MacCutchan23-Mar-15 23:11 
AnswerRe: C/C++ - Win32 : how can i find memory leaks? Pin
Jochen Arndt22-Mar-15 23:20
mvpJochen Arndt22-Mar-15 23:20 
GeneralRe: C/C++ - Win32 : how can i find memory leaks? Pin
Member 1154582423-Mar-15 12:34
memberMember 1154582423-Mar-15 12: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
Web01-2016 | 2.8.181113.4 | Last Updated 10 Feb 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid