Thanks,$puzzle = "D:\Games\BrainsBreaker 5\Ken\";
if (exists($puzzle)) {
renameitem("D:\Games\BrainsBreaker 5\Puzzles\", $puzzle);
}
else {
status "Folder name D:\Games\BrainsBreaker 5\Puzzles already exists.";
}
Ken
Thanks,$puzzle = "D:\Games\BrainsBreaker 5\Ken\";
if (exists($puzzle)) {
renameitem("D:\Games\BrainsBreaker 5\Puzzles\", $puzzle);
}
else {
status "Folder name D:\Games\BrainsBreaker 5\Puzzles already exists.";
}
klownboy wrote:Hi, I'm trying to run what should be a very simple script to rename a folder if it exists. The folder structure does have a space in the name, but not in the folder actually being renamed. I've been doing research and stepping through the script, but I'm getting the new name contains invalid characters over and over with way too many attempts at different quote combinations, single, double, triple, quadruple, and even the word quote with no luck. Any help would be greatly appreciated. The if exists below does return a "2". Here is part of the script.Thanks,$puzzle = "D:\Games\BrainsBreaker 5\Ken\";
if (exists($puzzle)) {
renameitem("D:\Games\BrainsBreaker 5\Puzzles\", $puzzle);
}
else {
status "Folder name D:\Games\BrainsBreaker 5\Puzzles already exists.";
}
Ken
Thanks again,$puzzle = "D:\Games\BrainsBreaker 5\Ken";
if (exists($puzzle)) {
renameitem("Puzzles", $puzzle);
}
else {
status "Folder name already D:\Games\BrainsBreaker 5\Puzzles.";
}