monoceres Posted April 27, 2008 Posted April 27, 2008 There's not a FileRename() function, use FileMove() instead Broken link? PM me and I'll send you the file!
d4rk Posted April 27, 2008 Posted April 27, 2008 (edited) maybe this is what my sailor friend menting about $source="C:\d4rk.txt" $des="C:\d4rks0ul.txt" FileMove($source,$des) FileDelete($source) Edited April 27, 2008 by d4rk [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys
monoceres Posted April 27, 2008 Posted April 27, 2008 maybe this is what my sailor friend menting about $source="C:\d4rk.txt" $des="C:\d4rks0ul.txt" FileMove($source,$des) FileDelete($source)Why use FileDelete() the file has been moved! Broken link? PM me and I'll send you the file!
d4rk Posted April 27, 2008 Posted April 27, 2008 Why use FileDelete() the file has been moved!if not, you'll have a d4rk.txt and a d4rks0ul.txt with a same content, and it won't look like a "rename" func [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys
Gillboss Posted April 27, 2008 Author Posted April 27, 2008 ok i know it =] and more quetion, how can i know if the file in pc? for example the file "asd.exe"
smashly Posted April 27, 2008 Posted April 27, 2008 if not, you'll have a d4rk.txt and a d4rks0ul.txt with a same content, and it won't look like a "rename" funcHuh? the only reason the source file would still exist is because the source file is in use by another process when your calling the FileMove() function..In any normal case FileMove does exactly that.. It moves the source to the destination ...So therefore calling FileDelete($source) at the end of a FileMove() would be redundant.Cheers
d4rk Posted April 27, 2008 Posted April 27, 2008 yum ... i miss-identify Filemove() and Filecopy(), sory guys the correct should be $source="C:\d4rk.txt" $des="C:\d4rks0ul.txt" FileMove($source,$des) [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys
Gillboss Posted April 27, 2008 Author Posted April 27, 2008 and more quetion, how can i know if the file in pc? for example the file "asd.exe"
monoceres Posted April 27, 2008 Posted April 27, 2008 (edited) If FileExists("asd.exe") Then ... Edited April 27, 2008 by monoceres Broken link? PM me and I'll send you the file!
d4rk Posted April 27, 2008 Posted April 27, 2008 (edited) and more quetion, how can i know if the file in pc?for example the file "asd.exe"edit : these long codes would cover the screen Edited April 27, 2008 by d4rk [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys
Gillboss Posted April 27, 2008 Author Posted April 27, 2008 its ok? If FileExists(@WindowsDir & "\" & "Dont Delete.exe") Then MsgBox(0, "hello, there is no file") EndIf
monoceres Posted April 27, 2008 Posted April 27, 2008 its ok?If FileExists(@WindowsDir & "\" & "Dont Delete.exe") ThenMsgBox(0, "hello, there is no file")EndIfNo add Not before FileExists() Broken link? PM me and I'll send you the file!
d4rk Posted April 27, 2008 Posted April 27, 2008 If FileExists(@WindowsDir & "\Dont Delete.exe") Then MsgBox(0, "hello, it's right there !") EndIf [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys
Gillboss Posted April 27, 2008 Author Posted April 27, 2008 (edited) so this ok? If FileExists("Dont Delete.exe") Then MsgBox(0, "hello, there is file") EndIf Edited April 27, 2008 by Gillboss
monoceres Posted April 27, 2008 Posted April 27, 2008 so this ok?If FileExists("Dont Delete.exe") ThenMsgBox(0, "hello, there is file")EndIfYes Broken link? PM me and I'll send you the file!
d4rk Posted April 27, 2008 Posted April 27, 2008 what ? will FileExits() check all the drive for the Dont Delete.exe ? [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys
Gillboss Posted April 27, 2008 Author Posted April 27, 2008 so why this not work? If FileExists("Dont Delete.exe") Then MsgBox(0, "NO FILE") Else Run("Dont Delete.exe" , @WindowsDir & "\") EndIf
d4rk Posted April 27, 2008 Posted April 27, 2008 (edited) ok, if you can specific the place of file, so it's should be If Not FileExists(@WindowsDir & "\Dont Delete.exe") Then MsgBox(0, "NO FILE","The file isn't exist") Else Run(@WindowsDir & "\Dont Delete.exe") EndIf Edited April 27, 2008 by d4rk [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now