I have a script which I can run from windows console writing "php backup.php". How to create a link to run it directly from desctop?
+6
A:
Windows? You create a batch file ("name.bat") with notepad, and you put the php command there. You will be able to double click it. Add the "pause" command at the end of your script, if you want to prevent the window from closing after the script completes.
Palantir
2010-08-05 08:26:53
I did:@ECHO OFFphp C:\backup.phpPAUSE
liu
2010-08-07 08:38:55
+1
A:
Use the windows context menu to select New->Shortcut and proceed accordingly from there on.
Mike Johnson
2010-08-05 08:28:19