Set path name with blanks per ITask-SetWorkingDirectory

Set path name with blanks per ITask-SetWorkingDirectory

<script src="/include/floor1_1.js" type="text/javascript"></script> Hi, I have a question concerning the scheduler task APIs: Does anybody know how to get quotation marks into the working directory of a scheduled task by API? It's necessary because the path name may contain blanks. The API removes the quotation marks if I code something like this: hr = pITask->SetWorkingDirectory(L"/"%TEMP%/""); A bug? For the application name it works with /". Thanks, Anja
Re:Set path name with blanks per ITask-SetWorkingDirectory
Whether or not the path contains spaces is irrelevant in this case. Working Directory path is not expected to contain command line parameters or anything like that, so spaces cannot be misinterpreted. You don't need the quotes. -- With best wishes, Igor Tandetnik With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925
100341: MCSE 70-217 exams 100342: VC.Net not recognizing template class friend function 100343: MCSE bootcamp silmiar to Military Bootcamp? 100344: ShAutComplete - How to add url in recently browsed web page list? 100345: CImage example 100346: Delay Loaded Managed C++ DLL won't load using VS 2005 100347: Convert long number to ascii 100348: Programming a MagTek check scanner.... 100349: Do I just not get it? 100350: ExecMethodAsync ReturnValue 100351: Move file if created in last two minutes 100352: Win32_NTDomains class 100353: Mouse Right Click 100354: definable collapsible regions? (#region) 100355: Lose resource values in OnInitDialog()? 100356: HELP ME!!! PLEASE COMPILE AND RUN JSCRIPT 100357: sockets in MFC 100358: Reflection and base class method calls... 100359: ScrollWindow does scroll but not paint all area 100360: Help about LARGE_INTEGER 100361: controls and res editor 100362: Re: 070-290 passed 100363: ocx files - I seem to be out of date - MSCOMCTL.OCX 100364: Bring new "InternetExplorer.Application" to the front... 100365: Disable a Device through Script 100366: Problems with help files using IE5.5 on W2Ksp4 100367: Equal compare 100368: change the background color of the text label 100369: Common File Protocol 100370: disabling mousewheel on conbobox 100371: spoolsv.exe error 100372: CDO Problem 100373: Rotating bitmaps, flicker free painting, SetWorldTransform function? 100374: string data, right truncation 100375: Control change notifications 100376: FORM TABLES & DATABASE 100377: IP Address Modification 100378: Newbie compiler error 100379: add row in datagrid 100380: How to protect my SQL Server queries 100381: Stored Procedure creation in vb.net 100382: Figure out domain of system? 100383: Minimum environment for VB.NET EXEs? 100384: What does CFindCtrl::FindItem() find? 100385: knowing if LAN is working 100386: MRU file crashes 100387: VBScript MessageBox 100388: Refresh DataGridView 100389: VS6 vs. VS .Net - Why should I upgrade? 100390: unsigned int to unsigned int64 100391: problems passing "/" in querystring 100392: IJolietDiscMaster->AddData returning STG_E_INVALIDFUNCTION 100393: Is a VB program causing this? 100394: Break HD with sw 100395: printform 100396: hiding items in a clistctrl 100397: Re: Parsing serial data 100398: win32 design patterns 100399: Automatic IIS URL redirection 100400: Typedef equiv.? 100401: PDF to Excel 100402: Frame, View, Crash 100403: FileCopy Without locking the file 100404: How to set all nodes checked = false, on a treeview 100405: Re: OCX used within ASP page 100406: image save 100407: Change "Error Trapping" setting at debug time 100408: Why This Code generate memory leak 100409: OnOpenRecentFile(...) called three times? 100410: Templated operator overloaded friend function 100411: Using an Array in a *.asp 100412: send a string to serial port to turn on projector 100413: Mystery ADO Exception 100414: Build a list with file/folder info 100415: How do I handle the click event of a row in a standarddata grid ? 100416: Sybex MCSE: Windows 2003 Certification Kit? 100417: re: the 'switch to' message 100418: User Control question 100419: About SQL Query. 100420: Dynamic Frame? 100421: date confusion 100422: Calling UserControl from within a form in the control... 100423: Re: MCNGP #49 (Was Re: Obtain MICROSOFT and CISCO certification( pay after CONFIRMATION)100% passing GAURANTEE) 100424: OT Suggestions: how to encrypt an EXE 100425: How to convert from string to char*? 100426: RegularExpressions 100427: Script for Bulk Import into AD from CSV File 100428: Help my "Create desktop shortcut" actually display.. 100429: Register ODBC DSN Database by programm 100430: Best Exam Simulation Software 100431: Beginner Question: Visual Studio 2005 - Visual Basic - Charts or Graphs 100432: lock if idle over 5 minutes 100433: FileVersion as string 100434: vb6 sp5 crash on xp pro sp 1a 100435: OT: Cor 100436: Consuming Webservice 100437: Font Dialog 100438: Winsock 100439: ActiveX inside a CDHtmlDialog 100440: Need help: Cast is not valid 100441: How do you sign a vbscript? (EOM) 100442: Declaring Arrays for use with Split() 100443: computer1 OR computer2 statement 100444: VBCRLF 100445: Add multiple groups to an OU 100446: Drag and drop: how to? 100447: Unicode problem 100448: reading section in app.config with new getSection method 100449: How to get the heap address? 100450: How to test for a valid date
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值