Re: Works great in qb64

by (Login MCalkins)
Moderator

SHELL doesn't seem to like a total string length >124.

SHELL SPACE$(124) 'this works
SHELL SPACE$(125) 'this doesn't

I think DOS is designed for total command lengths (including the command name and all parameters) to be <128.

3 possibilities:

CD to the folder (SHELL "j:", SHELL "cd \bshare"), so that you don't have to include the path in your ren commands. (This probably won't be sufficient.)
or, PRINT the ren commands to a .bat file, and then shell "cmd /c " to the bat file.
or, Keep using QB64.

Regards,
Michael



    
This message has been edited by MCalkins on Sep 16, 2011 7:22 AM
This message has been edited by MCalkins on Sep 16, 2011 7:19 AM
This message has been edited by MCalkins on Sep 16, 2011 6:36 AM

Posted on Sep 16, 2011, 6:31 AM

Respond to this message   

Return to Index


Response TitleAuthor and Date
You are right againlawgin on Sep 16
 *yw on Sep 16
* Thanks for the info. Didn't know that about Qbasic! on Sep 17