cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting File Using Exec('cmd.exe', 'del D:File.xls',8)

Former Member
0 Kudos

Hi All experts,

Im Facing Some Issue Here.. My Script need to delete the xls file that i use as source after the ATL Complete So I use Script Editor To Make It. The Script End Well But The file was not deleted... Can you Help me On This?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

aer you capturing the output of del command ? it's possible that the file may be still open

Answers (3)

Answers (3)

Former Member
0 Kudos
Former Member
0 Kudos

Hye All,

The Problem Solved. Before This I Use Exec('cmd.exe',' Del "D:\File.xls",8) ;

the Source Are Taken From Variables. When I Have To Change The Variables To D:/File.xls.. Noted That I Have To Change The \ To /

Former Member
0 Kudos

Hi Shahril,

Have you tried using the UNC path to your xls file instead of the mapped 😧 drive?

Regards,

Darrel