Messages - moongoon [ switch to compact view ]

Pages: [1]
1
Looks like a very cool program.  Just as an aside, the icon images don't appear for me.  I'm using Win 2k SP4 with the reference GeForce FX 5200 drivers on DirectX 9

Steps to Reproduce Error (With above PC setup):
1. Download Barnacle to Desktop.
2. Launch Barnacle.
3. Open NOTEPAD from Start -> Run

2
Post New Requests Here / Re: IDEA: MoveAllTo C:\olddata
« on: February 22, 2007, 01:46 PM »
Thanks to everyone for the responses.  However, no pre-made utility has worked adequately.  In an attempt to fire up the coding spirit I've attempted to make an AutoIt3 script to do the job.  It doesn't work but my hope is someone with actual programming skill will notice what is wrong.  It creates the C:\OldData folder, moves the root files to C:\OldData but none of the folders.  Take a look if you can :)

DirCreate("C:\OldData")
FileMove("C:\*.*", "C:\OldData",8)

; Shows the filenames of all files in the current directory
$search = FileFindFirstFile("C:\*.*") 

; Check if the search was successful
If $search = -1 Then
    MsgBox(0, "Error", "No files/directories matched the search pattern")
    Exit
EndIf

While 1
    $file = FileFindNextFile($search)
    If @error Then ExitLoop
If $file = "OldData" then $file = FileFindNextFile($search)
    If @error Then ExitLoop
DirMove( chr(34) & "C:\" & $file & chr(34), chr(34) & "C:\OldData\" & $file & chr(34), 1)
WEnd

; Close the search handle
FileClose($search)

3
Post New Requests Here / Re: MOVEALLTO C:\OLDDATA
« on: February 13, 2007, 11:23 AM »
Thanks for the input cthorpe!

That gets me closer to using ROBOCOPY.  However, it still balks at some system files or files with weird permissions.  It goes into a loop of Access is Denied.  Waiting 30 seconds..  I guess that means using the /ZB switch eh?

The reason why I think this would be better implemented as a program is that Windows Explorer can create an OLDDATA folder and move all the other folders and files into it in an instant.  Explorer must be using some shortcut to expedite the process and bypass those permission issues.  Maybe it directly accesses the MFT table (I'm no expert).  Maybe it uses standard calls *shrugs*

Thanks again for lending your brains :)

@cthorpe:  Doomo Arigato for the tip.  I did not know XXCOPY could do that!  Will try it out..

4
Post New Requests Here / Re: MOVEALLTO C:\OLDDATA
« on: February 13, 2007, 07:05 AM »
Thanks for the attempt!

However I get a:
Cannot move multiple files to a single file error.

The batch file doesn't create the OLDDATA folder.  Nor does it copy system files. It also does not move the subdirectories over.  Shell commands can also be much slower than direct access to Win32API.

I too had forgotten the limitations of the MOVE command.  It was a good thought though!  Thanks again for trying :)

P.S.  I noticed a mention of C# in your member details.  Maybe this code snack would be a good way to beef up your coding skills?  Try looking at this link for help on dealing with files and folders under C#
http://www.codeguru.com/Csharp/Csharp/cs_syntax/anandctutorials/article.php/c5861/

5
Post New Requests Here / IDEA: MoveAllTo C:\olddata
« on: February 12, 2007, 12:05 PM »
Seems simple but I've never seen a good solution to this.

Before reinstalling XP I like to *move* the contents of C to C:\OldData.  This greatly aids in installing a fresh, clean copy of Windows.  I'd use this in a WinPE environment so no worries about NTFS or locked files.

Can be a Win32 console application.  Doesn't really need a GUI.  Something like:

Name of Tool    NAME OF TARGET FOLDER (Create if not Present)
MOVEALLTO     C:\OLDDATA

I've heard ROBOCOPY can do this but my mind reels at learning all the syntax :p

Thanks in advance for your consideration!

Pages: [1]
Go to full version