Dear Statalist
I run the following code using Stata14:
!rm "C:/Users/user/Desktop/Q1.pdf"
It does not remove the file.
But running the following from Windows Power Shell removes the file:
rm "C:/Users/user/Desktop/Q1.pdf"
Any advice on how to get the Stata shell command works? I thought it would just work by putting the code you use in the shell into stata and put a "!" before the code and then you can get the result as if the code is run from the shell direct. But it seems this is not the situation. Grateful for any help!
Thanks
Charlie.
I run the following code using Stata14:
!rm "C:/Users/user/Desktop/Q1.pdf"
It does not remove the file.
But running the following from Windows Power Shell removes the file:
rm "C:/Users/user/Desktop/Q1.pdf"
Any advice on how to get the Stata shell command works? I thought it would just work by putting the code you use in the shell into stata and put a "!" before the code and then you can get the result as if the code is run from the shell direct. But it seems this is not the situation. Grateful for any help!
Thanks
Charlie.
Comment