Jump to content

FileMove problem in Windows 10 "length limit?"


Recommended Posts

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

The limit, if exists, is on the complete pathname length.

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 here
RegExp tutorial: enough to get started
PCRE 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

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

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 here
RegExp tutorial: enough to get started
PCRE 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

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

FileMove(@ScriptDir&'\test.txt', 'Thisfilenameisbiggerthan22charsfortesting.txt')

40+ chars and it worked fine in w10 x64

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

 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 by Earthshine

My resources are limited. You must ask the right questions

 

Link to comment
Share on other sites

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.

test.jpg

Edited by ternal
extra information
Link to comment
Share on other sites

Well, the op mentions the issue was with filemove, and filemove didn't rename anything over 22chars.

 

Edited 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...