Jump to content

Filecopy() failure


fopetesl
 Share

Recommended Posts

Struggling to get Filecopy() working

MsgBox(0,"Moving file: ", $fLine) ; C:\AlmeterS3\AI74_No2.csv
  FileCopy( $fLine, "C:\AlmeterS3\S3_Database\")
;  FileCopy( $fLine, $BatchDir & "\S3_Database\")
      If @error Then
         MsgBox($MB_SYSTEMMODAL, "ERROR!", "database write error " & @error)
      EndIf
  FileDelete( $fLine)

doesn't copy only creates a file "C:\AlmeterS3\S3_Database" (actually AI74_No2.csv)

Again my typo :( I should have added

$FC_OVERWRITE + $FC_CREATEPATH

since folder didn't actually exist.

Edited by fopetesl
Error found

The most powerful number in the Universe.  Zero.

Link to comment
Share on other sites

Or just 9.

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

  • Moderators

The way the OP wrote it is correct; we shouldn't be encouraging poor coding practices like magic numbers.

https://www.autoitscript.com/wiki/Best_coding_practices

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

OK

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

×
×
  • Create New...