Forward Slash in Scheduled Task Command Changes to Backslash (195896)



The information in this article applies to:

  • Microsoft Windows 98

This article was previously published under Q195896

SYMPTOMS

If you create a scheduled task in which the command in the Run box is enclosed in quotation marks and contains a command-line switch using a forward slash, the forward slash becomes a backslash. For example, the command in the Run box changes from

   "C:\Program Files\Example.exe /x"
				

to:

   "C:\Program Files\Example.exe \x"
				

RESOLUTION

To work around this problem, edit the command in the Run box so that the command-line switch is outside of the quotation marks. For example, change the command in the Run box from

   "C:\Program Files\Example.exe /x"
				

to:

   "C:\Program Files\Example.exe" /x
				


To change the command in the Run box for a scheduled task:

  1. Double-click the Task Scheduler icon on the right side of the taskbar.
  2. Double-click the task you want to modify.
  3. Modify the contents of the Run box, and then click OK.
  4. Close the Scheduled Tasks window.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Windows 98.

MORE INFORMATION

If the command in the Run box for a scheduled task includes a path, and the path contains spaces, the path must be enclosed in quotation marks.

Modification Type:MinorLast Reviewed:12/16/2004
Keywords:kbprb KB195896