I cannot figure out how to get a default path using the GetOpenFilename. I just want the open box default file path to look at 'C: training Windows' I dont want the file name, included, so they can pick it.
Have you tried working on your Windows computer when suddenly an error pops during copying files? Some errors you encounter might say “File name(s) would be too long for the destination folder.
You can shorten the file or try a destination that has a shorter path. “Or “the file name is too long” or “The source file name(s) are larger than is supported by the file system. Try moving to a location which has a shorter name, or you can change it to a shorter name(s) before attempting this operation.” Well, these error messages are really annoying especially if you are in a rush of something.
Somehow, fixing the error could be done by renaming folders. That’s it – you only have to rename one to five folders. But, if the error needs you to rename 200 or more folders, it is going to be tedious. To help you get rid of the problem, below are ideas and solutions on how to fix file path too long error in Windows. See also: Before you move on to the solutions, it is important to know first what causes the problem.
Basically, there is a character limit set in naming or renaming files in your Windows operating system. The limit is usually 250 to 260 characters only for naming the file as well as the path names. Thus, when you transfer files with long names from one destination to another, you will experience this path too long error in Windows system. Solutions in fixing path too long error in your Windows computer: Solutions 1 If you are transferring files in few folders only, renaming files/folders is a great way to solve the problem. Rename files and folder paths not exceeding file naming limit, which means, you have to rename files and folders within 250 to 260 characters only.
After renaming, you can copy and transfer files without experiencing errors. Solution 2 If you are not able to rename the folders, create a temporary virtual drive in My Computer. To do it, create a backup and restore point first before you proceed with the following steps:. Go to Start menu type “cmd” and press enter. Boot into a free GNU-Linux distro, locate the file in file manager, left-click, Delete with held down, to avoid activating the Trash Can. Tried it once with an installed OS, it worked, imagine it would work repeatedly. Reboot, and you’re back in Windows — with your problem fixed, and with no changes to your Windows installation.
The need to do this type of a deletion is so occasional, that having to leave Windows for a few moments really isn’t that big of a deal. But if you’ve set-up a multi-boot — the boot is faster and you can just exit Windows and go directly into Linux. That’s how I did it, but would expect the a Live DVD works just as well, if a bit slower. Some of the other functions of the utility mentioned here seem to duplicate those of Unlocker — specific for MS Windows, not Linux. You probably wouldn’t need it in Linux, anyway — because whatever’s locking the file wouldn’t be running. I did this with Linux Mint running the KDE desktop environment — but the other choices should be very close, for something as basic as a file deletion.
For speed, booting into a USB drive is faster than the optical drive.