|
|
|||||||
Hello, The purpose of this mail is to write a script that would test the presence of a file in a certain directory. How to script the presence of the file OK.TXT located in the directory of the user profile? I suppose the script looks like approximately to (but it doesn't work .....): SET PROFUSR=%userprofile% IF NOT EXIST (%PROFUSR%\ + "OK.txt") Litterally it should match to: IF NOT EXIST ("C:\Documents and Settings\Username\OK.TXT") |
||||||||
|
|
|||||||
Quote: the Syntax is a little off... Code:
|
||||||||
|
|
|||||||
This would do it. Code:
[edit] Bryce just beat me [/edit] |
||||||||
|
|
|||||||
try Code:
|
||||||||
|
|
|||||||
LOL Oops, var in a string And it's not even a kix var. |
||||||||
|
|
|||||||
OK it's working fine. Thanks for your help...... |