windows - using a wild card in a script in a directory name -
i'm writing script in want copy file directory "start menu\programs\startup" in computer. problem - script several computers , reason in each 1 administrator has different name,so path "c:\documents , settings*administrator*\start menu\programs\startup" not suitable all.
i'm looking way use wild card in directory name . like: "c:\documents , settings\administrator*\start menu\programs\startup", script work in computers. (the name unknown advance know start word 'administrator')
any ideas? thanks,
tamar
there more clever ways, 1 way use for
command. following:
cd "c:\documents , settings" /d %%f in (administrator*) copy yourfile "%%f\start menu\programs\startup"
Comments
Post a Comment