string furi(string s){ return "file:///"+translate $(translate $(s,"\\","/"),"//","/") }
Proc fURI Parameters s$ Declare x% If Left$(Lower$(s$),5) = "file:" x% = 5 : While Mid$(s$,x% + 1,1) = "/" : Inc x% : EndWhile s$ = Right$(s$,Len(s$) - x%) EndIf Return "file:///"+translate $(translate $(s$,"\\","/"),"//","/") ENDPROC cls print fURI("file:///c:/way/File.txt") print fURI("c:/way/File.txt") waitkey end
Session-Cookies