I can activate a workbook named as " book1" or something like that. but i cannot activate a workbook named as"Dummydrain4terminalidvd" I don't know the problem.
Because that name is too long for a short name. So either it has been trimmed to "Dummydrain4te" or it's actually a long name.
To active a window with it's long name: range rr = ["Dummydrain4terminalidvd"]; // Define range variable with long name window -a %(rr.name$); // Activate it
But be careful that long names can have duplicates.