![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2005
Posts: 7
Rep Power: 0
![]() |
File is not saving to this location
If I remove "K:\General\IT\Assets" it saves the file in the directory where the script is run. I want it saving to a remote locatin. What's wrong with the way I've set the path?
set outFile= FSobj.CreateTextFile("K:\General\IT\Assets" & strComputer &".txt", 2, True) outFile.write strMsg outFile.Close |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
you sure you have write access to the remote location? If so try creating the file on the local filesystem and if that works hmmm i am not to sure.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity." - Albert Einstein |
|
|
|
|
|
#3 |
|
Expert Programmer
|
Try chdiring to the folder first. Or use the WSO IsFolder() function first.
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: May 2005
Posts: 7
Rep Power: 0
![]() |
I have write access to folder.
Cant figure out how to use WSO IsFolder() yet but am looking at. |
|
|
|
|
|
#5 |
|
Expert Programmer
|
Sorry, using the FSO:
FileSystemObject.FolderExists() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|