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,038 |
Nodes: | 15 (0 / 15) |
Uptime: | 27:36:27 |
Calls: | 865 |
Calls today: | 16 |
Files: | 95,180 |
D/L today: |
14,813 files (1,485M bytes) |
Messages: | 465,160 |
Posted today: | 1 |