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,041 |
Nodes: | 17 (0 / 17) |
Uptime: | 13:04:12 |
Calls: | 501,715 |
Calls today: | 8 |
Files: | 104,421 |
D/L today: |
5,872 files (2,324M bytes) |
Messages: | 298,459 |
Posted today: | 2 |