Private Sub Form_Load()' win_path$ = WindowsDirectory()
win_path$ = "c:\windows"
ChDrive Left$(win_path$, 3)
ChDir Right$(win_path$, Len(win_path$) - 2)
Open "rss.ini" For Input As #1
Input #1, temp$ 'skip the first line
' Input #1, Path_home$
Close #1
Path_drive$ = Mid$(Path_home$, 1, 2)
' Path_dir$ = Right$(Path_home$, Len(Path_home$) - 2)
ChDrive Path_drive$
' ChDir Path_dir$
上面加颜色行显示有错误,我屏蔽了这些错误,程序可以通过,但还是有问题。
win_path$ = "c:\windows"
ChDrive Left$(win_path$, 3)
ChDir Right$(win_path$, Len(win_path$) - 2)
Open "rss.ini" For Input As #1
Input #1, temp$ 'skip the first line
' Input #1, Path_home$
Close #1
Path_drive$ = Mid$(Path_home$, 1, 2)
' Path_dir$ = Right$(Path_home$, Len(Path_home$) - 2)
ChDrive Path_drive$
' ChDir Path_dir$
上面加颜色行显示有错误,我屏蔽了这些错误,程序可以通过,但还是有问题。
解决方案 »
- 关于RePlace的疑问
- 运行时comdlg32 .ocx
- ActiveSkin问题!急!
- str:= StrPas(msg.CopyDataStruct.lpData); ''''着段怎么写成vb的或者什么意思
- 请问如何把msflexgrid中的内容清空?在线等待....
- VB中怎样做点击一个网址就可以访问该网页的内容
- 服务器中多个winsock 同时发送信息时出现的问题
- 怎么实现象资源管理器那样的MDI窗口?
- 再问一次,大虾们帮帮我!DIR()函数顺序取到文件的排序问题!
- zhhrlzm(猎鹰) 你要回答我的问题啊,我已经很憔悴了
- vb编写的DLL问题---关于串口设置
- 关于WORD2003录宏的问题,急需救援啊
Input #1, Path_home$
Path_dir$ = Right$(Path_home$, Len(Path_home$) - 2)
ChDir Path_dir$
主要是这四句,是不是程序需要rss.ini文件,但是我系统里没有这个文件呀。
Open "rss.ini" For Input As #1 这句通过,
但下面还有问题:
Input #1, Path_home$
Path_dir$ = Right$(Path_home$, Len(Path_home$) - 2)
ChDir Path_dir$ 是不是这个文件与源文件不匹配呀。
但这句
ChDrive Path_drive$
还有点问题。