Sign in to follow this  
Followers 0
top

need some help

4 posts in this topic

#1 ·  Posted (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 by top

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

oh my bad . :)

i need some sleep.

thanks theguy0000

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by codemyster

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