我无法真正测试它,因为它使用了那些“dos”函数。。。但是试一试:
- (setq user (dos_username))
- (cond ((= user "BLockhart")
- (setq userp "Ben"))
- ((= user "CBearden")
- (setq userp "Chris"))
- ((= user "LBrown")
- (setq userp "Lavon"))
- ((= user "RChambers")
- (setq userp "Ronnie"))
- ((= user "JMitchell")
- (setq userp "Justin"))
- ((= user "JPrice")
- (setq userp "Joe"))
- ((= user "LCooper")
- (setq userp "Lonny"))
- (setq userp (getstring "\n Please enter your first name: "))
- );cond end
- (setq maindir (dos_getdir "Select directory you wish to print:" (strcat "W:\"userp"\\New Projects")))
- (setq sublist (dos_subdir maindir) subnum (length sublist) cnt 0)
- (while (< cnt subnum)
- (setq fldr (nth cnt sublist))
- (setq dwglist (cons (strcat maindir fldr) dwglist) cnt (+ cnt 1))
- )
- )
|