23
Jul

What is app.path?How to create app path ?

What is app.path ? How to create app path ??

App.path is a function which returns a string with “\” character at the end if the path is the root drive. For example (”C:\”). But without that character (”\”)  if it isn’t ( example “c:\program files”). Most of the time we need the “\” at the end, so this function saves you the inconvenience of adding it every time.

—————–
Public Function AppPath() As String
Dim sAns As String
sAns = App.Path
If Right(App.Path, 1) <> “\” Then sAns = sAns & “\”
AppPath = sAns
End Function

18
Jul

How to create new Windows XP user using Dos Prompt??

We all know how to create a new user account in Windows XP . Just go to Start and click on Control panel. Now open the “user account tool”. Here you will be seeing an option Like “create an account”. Well enter any windows XP user and click on create  account. This is how you will be creating a new Windows XP user. But there is a different procedure to create a new Windows Xp user using dos prompt.
To create a new  account you have to type as follows : net user USERNAME PASSWORD \ADD
To delete the account type as follows : net user USERNAME \del
to get admin rights type as follows : net localgroup administrators username \add
The complete command is
[username [password | *] [options]] [/DOMAIN]
username {password | *} /ADD [options] [/DOMAIN]
username [/DELETE] [/DOMAIN]