Dear All,
This may come as an odd request however, I am trying to understand whether the following can be addressed using Stata. I will try to be as descriptive as possible.
I do not have data for this as I am trying to understand a general concept of going about this.
Suppose I have a CSV file that contains a variable called ID (string) and is unique on it. This CSV file contains list of all those ID's whose documents (contain ID number in document name) can be stored in either Folder 1 or Folder 2. Both these folders are stored in Folder 0.
I would like to see whether I can write a code that picks each ID from the CSV, looks for that persons file in either of the 2 folders, and if found, deletes it from the directory. After it is done deleting, it displays all those ID's that were removed from the folder.
Related Posts with Using Stata to delete files from folders
Testing Differences in Pearson's Correlations in Survey DataHello everyone: I am trying to compare the correlation among the same two numerical variables (x1 a…
How to copy the output table in Stata to excel with the cell-by-cell format?When running this code, Code: esttab m1 m2 m3 m4 m5 m6,star(* 0.1 ** 0.05 *** 0.01) ar2 title(" de…
Outfile to raw without aproximating values of dataHi, how can I export data into a raw file preserving the original values of large numbers? I am usi…
Curiousity about the default symbols of Stata?Today when I read the esttab command of Stata (http://repec.org/bocode/e/estout/hlp_esttab.html), I …
Neighboring StatesHello Statalisters, I am running into a problem with some code. I am writing a policy diffusion pap…
Subscribe to:
Post Comments (Atom)
0 Response to Using Stata to delete files from folders
Post a Comment