Hello, everyone!!
How to delete the specified file in the specified directory in Opensees when the program work? I used the command "file delete E:/lvy/output/a.txt", but it doesn't work. The error is given, "permission denied". But after I end the programe, the command works well.
Thank you,
With regards,
Liang Zhiyao
how to delete file
Moderators: silvia, selimgunay, Moderators
I got the answer, the code is as follow.
Code: Select all
remove recorders
for {set j 1} {$j<11} {incr j 1} {
file delete -force E:/lvy/OpenSEES/final/modevector$j.out
}
-
- Posts: 68
- Joined: Fri Jul 02, 2004 6:10 am
- Location: Computers and Structures, Inc.
Try
Code: Select all
file delete -force "E:\\lvy\\OpenSEES\\final\\modevector$j.out"
Berk Taftali
Georgia Institute of Technology
Ph.D. Candidate, Structural Engineering, Mechanics, and Materials
School of Civil and Environmental Engineering
Atlanta, GA 30332 USA
Email: gte994y@mail.gatech.edu
Georgia Institute of Technology
Ph.D. Candidate, Structural Engineering, Mechanics, and Materials
School of Civil and Environmental Engineering
Atlanta, GA 30332 USA
Email: gte994y@mail.gatech.edu