top Posted September 24, 2006 Share Posted September 24, 2006 (edited) it doesnt work please help thanks in advance. $rename FileMove ("file1", "file_1") If $rename = 0 Then MsgBox(0, "Rename", "Error. Can't rename file") Else MsgBox(0, "Rename", "Rename successfull") EndIf Edited September 24, 2006 by top Link to comment Share on other sites More sharing options...
theguy0000 Posted September 24, 2006 Share Posted September 24, 2006 why does it not work? does it do nothing? does it crash your computer? does it make your computer smoke? does it put the power out in your neighborhood? jokning aside, the problem is probably that in the first line, there needs to be an = sign after $rename but before FileMove. And, the two files inside filemove need extensions. And, you say Elselse on line 4, it's just Else. But in the future, try telling us why it doesn't work, because the errors won't always be as easy to find as those. The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
top Posted September 24, 2006 Author Share Posted September 24, 2006 oh my bad . i need some sleep. thanks theguy0000 Link to comment Share on other sites More sharing options...
NELyon Posted September 24, 2006 Share Posted September 24, 2006 (edited) $rename = FileMove ("file1", "file_1") If $rename = 0 Then MsgBox(0, "Rename", "Error. Can't rename file") Else MsgBox(0, "Rename", "Rename successfull") EndIf Edited September 24, 2006 by codemyster Link to comment Share on other sites More sharing options...
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