| View previous topic :: View next topic |
| Author |
Message |
mplacona
Joined: 07 Aug 2007 Posts: 28
|
Posted: Thu Aug 09, 2007 7:09 am Post subject: Lua creating folders on pc? |
|
|
Hi guys, I've got a quick one here.
Can the LUA create directories on my desktop is connected by USB?
I've tried the folowing code as a test:
| Code: |
--Connects the PSP to the USB
System.usbDiskModeActivate()
System.sleep(15000)
System.createDirectory("c:\\bkptst")
|
It doesn't return any error, though it doesn't create any folder.
If I try the same, but creating it on ms0:/, it woks like a charm.
Can anyone here help me?
Thanks[/code] |
|
| Back to top |
|
 |
michaelp
Joined: 02 Jul 2007 Posts: 7
|
Posted: Thu Aug 09, 2007 7:27 am Post subject: |
|
|
i don't think you can do that if it doesn't create any folder
maybe try taking 1 of the slashes in the C:/ location, i don't think there is supposed to be two |
|
| Back to top |
|
 |
mplacona
Joined: 07 Aug 2007 Posts: 28
|
Posted: Thu Aug 09, 2007 7:38 am Post subject: |
|
|
AFAIK the backslash is an escape isn't it?
If I try with just one I think I'll get an error. Will try though! |
|
| Back to top |
|
 |
mplacona
Joined: 07 Aug 2007 Posts: 28
|
Posted: Thu Aug 09, 2007 7:45 am Post subject: |
|
|
| Yeah, I got no error, but no folder created either |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Fri Aug 10, 2007 2:51 am Post subject: |
|
|
| No, the PSP can't control the PC in any way when it is connected as a USB mass storage device. Not a limitation of the PSP or LUA, that's just how USB mass storage works. |
|
| Back to top |
|
 |
mplacona
Joined: 07 Aug 2007 Posts: 28
|
Posted: Fri Aug 10, 2007 2:54 am Post subject: |
|
|
So that means I can't even do it using pure C?
Do you know any other way for copying files from the MS (inserted on the PSP) to the PC?
I mean.. programatically? |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Fri Aug 10, 2007 3:33 am Post subject: |
|
|
In mass storage mode, the PSP can't initiate any sort of file transfer, no.
If you write a custom driver on the PSP and PC side, you could do it. Look at psplink's usb async provider stuff if you want to implement that. |
|
| Back to top |
|
 |
|