Sign in to follow this  
Followers 0
sbrady

FileMove wont work

11 posts in this topic

I have a file on the desktop I want to move into a folder on the desktop. What am I doing wrong, code is right out of the help file. By the way , once the file is moved INTO the folder, is there a way to select it programmatically. The name of the file to be moved is copy of pw.txt

FileMove ( "C:\Documents and Settings\sebrad\Desktop\" & "Copy of pw", "C:\Documents and Settings\sebrad\Desktop\Open PM3\" )

Share this post


Link to post
Share on other sites



and where is your ".txt" in code?


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

this wont work either, maybe I need to reboot the machine to clear things out.

$Source = "C:Documents and SettingssebradDesktopOpen PM3Copy of pw.txt"
$Dest = "C:Documents and SettingssebradDesktopOpen PM3"
FileMove( $Source, $Dest )

Share this post


Link to post
Share on other sites

do you need to have the file extension in the code all the time. My machine does not show .txt in the desktop. I am coming from the Mac way of doing things.

Share this post


Link to post
Share on other sites

answer on second question

#Include <WinAPIEx.au3>
_WinAPI_ShellOpenFolderAndSelectItems('C:Documents and SettingssebradDesktopOpen PM3copy of pw.txt')


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

I get an error, says cant open file &^%$#@@

still cant figure out why a simply fileMove command wont work.

answer on second question

#Include <WinAPIEx.au3>
_WinAPI_ShellOpenFolderAndSelectItems('C:Documents and SettingssebradDesktopOpen PM3copy of pw.txt')

Share this post


Link to post
Share on other sites

I got the FileMove to work if going from folder to folder.

desktop to folder does NOT work

why cant I move it from the DESKTOP to a folder........hmmmmmm

$Source = "C:Documents and SettingssebradDesktopshawncopy of pw.txt"
$Dest = "C:Documents and SettingssebradDesktopOpen PM3"
FileMove( $Source, $Dest )

Share this post


Link to post
Share on other sites

bog, I downloaded your WINAPIEx file, now what......

Share this post


Link to post
Share on other sites

Desktop is a folder.

Cant take anything you say at it's value anyway because you have proven that you just make

it up as you go along.

It is my opinion that you have more super secret code you are not mentioning.

FileMove works Perfectly every time, when used properly.


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

I got the FileMove to work if going from folder to folder.

desktop to folder does NOT work

why cant I move it from the DESKTOP to a folder........hmmmmmm

$Source = "C:Documents and SettingssebradDesktopshawncopy of pw.txt"
$Dest = "C:Documents and SettingssebradDesktopOpen PM3"
FileMove( $Source, $Dest )

This is never going to work the way you want, because you're not defining the name of the file in the destination. The code as you have it will create an unknown filetype called OpenPM3 on the desktop. This, however, works all day:

$Source = "C:Documents and SettingssebradDesktopshawncopy of pw.txt"
$Dest = "C:Documents and SettingssebradDesktopOpen PM3copy of pw.txt"
FileMove( $Source, $Dest )

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
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
Sign in to follow this  
Followers 0