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
Adding quantity of particular product from all importers and one particular exporterDear all, I have a dataset with information about products (numeric), their quantity, the importer …
change label in y-axis/x-axis?Dear All, I have the following code (please ssc install coefplot) and graph: Code: webuse grunfeld,…
Regression discontinuity of binary outcomes with rdplot/rdrobust/rdbwselect and/or rd*Hi I’m using Stata/SE 15.1 and am able to run all example do files included in the rdplot/rdrobust/r…
Crossed effects multilevel modelsHi, I collected data from an experience sampling study over 14 days, where participants belonged to…
Latent profile analysis with continuous indicators and local independenceHello Stata users! I am doing a Latent Profile Analysis with continuous indicators (gsem, lclass op…
Subscribe to:
Post Comments (Atom)
0 Response to Using Stata to delete files from folders
Post a Comment