我试图将文件另存为* .xlsx而不覆盖具有相同名称的现有文件。只有在指定的文件存在的情况下,我才想将新的数字后缀添加到新的文件名中,例如file(1).xlsx,file(2).xlsx。这里是我迄今为止尝试: do {
s = JOptionPane.showInputDialog("Enter the name of the file name");
File tmpDi
这段代码是我第一次尝试创建一个程序。运行时发生错误: PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\gabri\Desktop\' -> 'C:\Users\gabri\Desktop\Planilhas
这非常奇怪。但我想我可能会错过一些基本的东西。我正在尝试命名一个结合了字母和数字的独特名称。 这里发生了什么: 我选择一个范围(点击并拖动多个小区) 右键 - >定义名称... ABC123输入,然后点击确定。 错误。 The name you entered is not valid.
Reasons for this can include:
-name does not begin wi