查看: 2432|回复: 4

[已经解决] 事件脚本创建文件夹出现错误

[复制链接]
梦石
0
星屑
50
在线时间
99 小时
注册时间
2014-5-2
回帖
51
发表于 2014-9-7 09:50:30 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 涵影_博 于 2014-9-7 09:54 编辑

RT 使用后直接报错
QQ截图20140907095353.png
[pre lang="ruby" line="1"]file=File.open("D:/My Documents/KankageSimbo/Not me,not me/Saves/", "wb")
file.close[/pre]
<iframe frameborder=&quot;no&quot; border=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; width=285 height=86 src=&quot;http://music.163.com/outchain/player?type=2&id=33111737&auto=1&height=66&quot;></iframe>
梦石
0
星屑
50
在线时间
269 小时
注册时间
2014-5-9
回帖
124

开拓者

发表于 2014-9-7 10:53:45 | 显示全部楼层
Dir.mkdir("Saves")

评分

参与人数 1星屑 +132 收起 理由
VIPArcher + 132 我很赞同

查看全部评分

回复

使用道具 举报

梦石
0
星屑
50
在线时间
99 小时
注册时间
2014-5-2
回帖
51
 楼主| 发表于 2014-9-7 12:11:00 | 显示全部楼层
泉塚四季 发表于 2014-9-7 10:53
Dir.mkdir("Saves")

……很是感谢但是游戏不在这个文件夹,是在外部建立文件夹的
<iframe frameborder=&quot;no&quot; border=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; width=285 height=86 src=&quot;http://music.163.com/outchain/player?type=2&id=33111737&auto=1&height=66&quot;></iframe>
回复

使用道具 举报

…あたしは天

梦石
0
星屑
2308
在线时间
4033 小时
注册时间
2010-10-4
回帖
10548

开拓者贵宾

发表于 2014-9-7 12:32:59 来自手机 | 显示全部楼层
本帖最后由 taroxd 于 2014-9-7 12:39 编辑
涵影_博 发表于 2014-9-7 12:11
……很是感谢但是游戏不在这个文件夹,是在外部建立文件夹的


没说一定要相对路径

但是同样注意,只能在已存在的文件夹内创建新文件夹

评分

参与人数 1星屑 +100 收起 理由
VIPArcher + 100 认可答案

查看全部评分

回复

使用道具 举报

梦石
0
星屑
50
在线时间
99 小时
注册时间
2014-5-2
回帖
51
 楼主| 发表于 2014-9-7 12:42:48 | 显示全部楼层
taroxd 发表于 2014-9-7 12:32
没说一定要相对路径

但是同样注意,只能在已存在的文件夹内创建新文件夹 ...

我懂了 谢谢前辈
<iframe frameborder=&quot;no&quot; border=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; width=285 height=86 src=&quot;http://music.163.com/outchain/player?type=2&id=33111737&auto=1&height=66&quot;></iframe>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部