renaming a file

Blitz3D Forums/Blitz3D Beginners Area/renaming a file

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I've been thinking too about Syntax Error's method...

Problem is indeed that WinXP has "Cmd", while win98 uses "Command".... If Blitz would have a way to read Evironment variables you could solve that problem...

(don't know the Blitz variant if it exists, but for the easiness I'll call it GetEnviron)

ExecFile GetEnviron("COMSPEC") & "/c ren OldFile.txt NewFile.txt"


If Blitz supports this, the problem is solved... (For the DOS-Call that is, an internal feature would be a lot better)...