DOS batch file experts?
•
15 Feb 2010, 22:39
•
Journals
Hey guys
I've got this batch file:
When executed inside a folder, this batch will make folders for all files inside that folder, and then move all those files to the newly created folders.
Now I need another batch file, which does this:
When executed inside a folder, go into the child folders (only 1 level deep), move all the contents of those childfolders to the main folder where the batchfile is in, and then remove the child folder (if it doesn't have any subfolders).
Can anyone do this? I suppose this is quite an expert-task!
I'll buy you a drink at lan if you can help me out! (and if you're not going I'll be very thankful)
Cheers
Edit: found it!
I've got this batch file:
When executed inside a folder, this batch will make folders for all files inside that folder, and then move all those files to the newly created folders.
Now I need another batch file, which does this:
When executed inside a folder, go into the child folders (only 1 level deep), move all the contents of those childfolders to the main folder where the batchfile is in, and then remove the child folder (if it doesn't have any subfolders).
Can anyone do this? I suppose this is quite an expert-task!
I'll buy you a drink at lan if you can help me out! (and if you're not going I'll be very thankful)
Cheers
Edit: found it!
#include <stdio.h>
#include <errno.h>
extern int rmdir_main(int argc, char **argv)
{
if (argc == 1 || **(argv + 1) == '-') {
usage
("rmdir [OPTION]... DIRECTORY...\n"
#ifndef BB_FEATURE_TRIVIAL_HELP
"\nRemove the DIRECTORY(ies), if they are empty.\n"
#endif
);
}
while (--argc > 0) {
if (rmdir(*(++argv)) == -1) {
fprintf(stderr, "%s: %s\n", *argv, strerror(errno));
exit(FALSE);
}
}
return(TRUE);
}
What's the problem here?
for (int i=0; i<sysinfo.adpaters.length; i++)
{
informationlist.items.add(new listviewitem(new string[] ("IP Address", sysinfo.adpaters.networkaddress}));
{
The error is: Cannot convert to string.
How would I fix this?
Simple error, VERY simple/
I hope this helped.
WTF?!?