Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help creating a simple vb login script

Status
Not open for further replies.

jeremy750

IS-IT--Management
May 22, 2002
22
0
0
US
I need to check if a file is renamed, then if it isn't rename it and copy a new file to the same directory. Something like this:
IF EXIST C:\somefile.old
THEN END
ELSE
COPY Q:\Somfile.new C:\somefile.new
END

but I do not know how to do this in a normal login script. Do I need a vbscript or can I just do this in a regular batch file? Any help would be great.

Thanks!

-Jeremy
 
A simple .BAT or .CMD suffice.
In a console window type if /?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top