Is there any reason you're not wanting to use the Rename procedure that's part of the fpc system library?
I have some FPC code, that isn't working the way it should.
if FileExists(fn+'.PK2') then shell('/usr/bin/mv '+fn+'.PK2
'+fn+'.MIX');
Is there any reason you're not wanting to use the Rename procedure that's part of the fpc system library?
I have some FPC code, that isn't working the way it should.
if FileExists(fn+'.PK2') then shell('/usr/bin/mv '+fn+'.PK2
'+fn+'.MIX');
if FileExists(fn+'.PK2') then shell('/usr/bin/mv '+fn+'.PK2
'+fn+'.MIX');
Was this a typo? Or should the first instance of "fn" have a "+" before it as well?
if FileExists(fn+'.PK2') then shell('/usr/bin/mv '+fn+'.PK2
'+fn+'.MIX');
Was this a typo? Or should the first instance of "fn" have a "+"
before it as well?
You're showing you are not a programmer! ;)
+ Is the operator to concatenate two strings together. So you are not puting it just in front of a string or string variable, but between them...
if FileExists(fn+'.PK2') then shell('/usr/bin/mv '+fn+'.PK2
'+fn+'.MIX');
Was this a typo? Or should the first instance of "fn" have a "+" before it as well?
if FileExists(fn+'.PK2') then shell('/usr/bin/mv '+fn+'.PK2
'+fn+'.MIX');
Was this a typo? Or should the first instance of "fn" have a "+" before it as well?
Hello j,
On Thu Jan 26 2017 19:50:18, j b l wrote to All:
I have some FPC code, that isn't working the way it should.
if FileExists(fn+'.PK2') then shell('/usr/bin/mv '+fn+'.PK2
'+fn+'.MIX');
Was this a typo? Or should the first instance of "fn" have a "+" before it as well?
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,043 |
Nodes: | 16 (0 / 16) |
Uptime: | 90:45:02 |
Calls: | 500,954 |
Calls today: | 3 |
Files: | 109,377 |
D/L today: |
1,274 files (248M bytes) |
Messages: | 304,702 |