# Revision history [back]

Assuming that you installed the Windows native version of Sage, run the "SageMath Shell" which opens a command-prompt, and run sage 'K:\sageexample\example.sage.sage' (for example, based on the filename in the question). Note that this a a bash (Unix-like) shell, where the backslashes used in Windows paths imply an escape character normally, which might have been your problem. So it's necessary to enclose the path in single-quotes for it to be interpreted correctly.

Alternatively you can use forwardslashes instead of backslashes like sage K:/sageexample/example.sage.sage. This will be interpreted correctly as a Windows path as long at it starts with a valid drive letter.

Assuming that you installed the Windows native version of Sage, run the "SageMath Shell" which opens a command-prompt, and run

sage 'K:\sageexample\example.sage.sage''K:\sageexample\example.sage.sage'
 

at the prompt (for example, based on the filename in the question). Note that this a a bash (Unix-like) shell, where the backslashes used in Windows paths imply an escape character normally, which might have been your problem. So it's necessary to enclose the path in single-quotes for it to be interpreted correctly.

Alternatively you can use forwardslashes instead of backslashes like like

sage K:/sageexample/example.sage.sageK:/sageexample/example.sage.sage
.  

This will be interpreted correctly as a Windows path as long at it starts with a valid drive letter.