juniq Posted July 22, 2018 Share Posted July 22, 2018 Hey I've written a script which adds an entry to the context menu to rename mp3 files by their id3 tags and several parameters like date and calendar week n stuff. All works fine in windows 7 (my machine). But my customers pc runs win10 (i hate it) and it looks like it can't rename a file to a name longer than 22 characters. that sucks... Any tip for me? I use FileMove to rename the file. And the destination file is grabbed by $cmdline.. tried to use RunDos but it doesn't accept autoit variables in destination filename. help please is there any way to hack this 22 character length limit in win 10? Link to comment Share on other sites More sharing options...
Earthshine Posted July 22, 2018 Share Posted July 22, 2018 (edited) How about you try doing it manually on the commandline in windows 10 and tell us if there's a problem because I highly doubt that's the limit https://www.quora.com/What-is-the-maximum-character-limit-for-file-names-in-windows-10 Edited July 22, 2018 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
jchd Posted July 22, 2018 Share Posted July 22, 2018 The limit, if exists, is on the complete pathname length. Earthshine 1 This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
Earthshine Posted July 22, 2018 Share Posted July 22, 2018 260 char And Microsoft is going to let you increase it My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Earthshine Posted July 22, 2018 Share Posted July 22, 2018 One could always make those directories change to them and then have a huge file name moved there My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
juniq Posted July 22, 2018 Author Share Posted July 22, 2018 no it's 22. if I rename it manually of course I can put a much longer file name in it. But NOT via FileMove function. In Windows 7 it works perfectly. What's the matter? It must be windows 10. I can't use commandline because I wanna keep my variables in autoit Link to comment Share on other sites More sharing options...
jchd Posted July 22, 2018 Share Posted July 22, 2018 I can't believe your 22-char total pathname limit. Could even bet something on that, halas no Win10 here. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
juniq Posted July 22, 2018 Author Share Posted July 22, 2018 Just now, jchd said: I can't believe your 22-char total pathname limit. Could even bet something on that, halas no Win10 here. the destination pc is running Windows 10 64bit. I can't rename the file with FileMove it will stop after the 22nd character. no matter what I put in there. Link to comment Share on other sites More sharing options...
juniq Posted July 22, 2018 Author Share Posted July 22, 2018 26 minutes ago, Earthshine said: One could always make those directories change to them and then have a huge file name moved there what??? Earthshine 1 Link to comment Share on other sites More sharing options...
juniq Posted July 22, 2018 Author Share Posted July 22, 2018 31 minutes ago, jchd said: The limit, if exists, is on the complete pathname length. I know? that's what I said Link to comment Share on other sites More sharing options...
juniq Posted July 22, 2018 Author Share Posted July 22, 2018 30 minutes ago, Earthshine said: 260 char And Microsoft is going to let you increase it ugh.. forget it. user4157124 1 Link to comment Share on other sites More sharing options...
careca Posted July 22, 2018 Share Posted July 22, 2018 FileMove(@ScriptDir&'\test.txt', 'Thisfilenameisbiggerthan22charsfortesting.txt') 40+ chars and it worked fine in w10 x64 Earthshine 1 Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
Earthshine Posted July 22, 2018 Share Posted July 22, 2018 (edited) asking for help and not showing any of your code and just complaining is not the way to get this solved. You are doing something wrong and we're not going to guess If you have a file name that is 260 characters, which it can be, you must first change working directories to where you want to move the file to that way all your characters can be spent on your file name and not the path. Think about it Edited July 22, 2018 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
ternal Posted July 22, 2018 Share Posted July 22, 2018 (edited) I dont know if this is what you guys meant but I am running win10 and I just made a silly long filepath/filename and both work when entered manually edit: the upperlimit is indeed on 260 chars when trying to make another longer directory inside this one it gave me an error. Earthshine is 100% right on this! Kind regards. Edited July 22, 2018 by ternal extra information Link to comment Share on other sites More sharing options...
careca Posted July 22, 2018 Share Posted July 22, 2018 (edited) Well, the op mentions the issue was with filemove, and filemove didn't rename anything over 22chars. Edited July 22, 2018 by careca Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
Earthshine Posted July 22, 2018 Share Posted July 22, 2018 filecopy, verify then delete old. done My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now