Adding a char inside path string
Fredrik Lundh
fredrik at pythonware.com
Wed Aug 16 10:21:51 EDT 2006
"Hitesh" wrote:
> I get path strings from a DB like:
>
> \\serverName\C:\FolderName1\FolderName2\example.exe
>
> I am writing a script that can give me access to that exe file.
> But problem is that string is not universal path, I need to add C$.
> Any idea how I can add $ char in that string.
> ServerName is not fixed length. It could be any chars length.
upath = path.replace("C:", "C$")
</F>
More information about the Python-list
mailing list