Jump to content

Raja

Member
  • Posts

    37
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Australia

About Raja

Raja's Achievements

0

Reputation

  1. Search for "Using RIS with Ghost" on www.symantec.com.
  2. Another option if u must use batch file, you can check for the file size or the date stamp. Below is the example for Notepad.exe which has file size of 69,120 bytes. dir %windir%\notepad.exe|find "69,120" if errorlevel 0 if not errorlevel 1 echo "Version is correct"
  3. Set objShell = CreateObject("WScript.Shell") strCompType = objShell.RegRead("HKLM\System\CurrentControlSet\Services\Pcmcia\Start") If (strCompType = "0") Then Msgbox "PC is a laptop" Else Msgbox "PC is a desktop" End If This is based on the assumption that Laptops have PCMCIA slot hence the service is enabled.
  4. HKLM\Software\Policies\Microsoft\Windows\Psched!NonBestEffortLimit
  5. Use a vbscript to run the ping command. Copy and Paste the code below in a .vbs file. Set objShell = CreateObject("Wscript.Shell") objShell.Run "cmd /c ping 127.0.0.1 -n 40", 0
  6. Daniel Below is what I have and works fine for me [RegionalSettings] Language = 0c09 LanguageGroup = 1 and a reg merge ; Remove Language Bar [-HKEY_CLASSES_ROOT\CLSID\{540D8A8B-1C3F-4E32-8132-530F6A502090}] Do not have Messenger installed so am not sure of the results if enabled/installed. Cheers Raja
  7. Any particular reason that you are not considering a startup script which is applicable to computers and can be a simple batch file executing whatever u like.
  8. Check if this helps, you will have to expand on this as per your needs. Can help with any follow up ques u may have. Link
  9. Hi Using VB or Java script will give you the flexibility of getting the result the way you want it. Alternatively you can use net user command in a batch file. Try as below and see if u can use it successfully for ur need; Net user %USERNAME%|Find "*"|Find /v "Global Group" Cheers
  10. Hi Am not sure what error is being reported as is it not in English, translate in English and I may be able to help. In regards to compiling vbs to an .exe, for US $100 u can get AdminScriptEditor Cheers Raja
  11. The feature is built right in the notepad; Look for Go to.. under the Edit menu, or alternatively press Ctrl + G and enter the line no. Pressing Ctrl + G will display the current line no. Cheers Raja
  12. Hi Allan If you can afford to spend $99, then check ASI Editor at http://www.adminscripteditor.com/editor/. I am using this and is worth the small investment. Raja
  13. Change sliced = testpath.slice(0,2) To sliced = Left(testpath,3) Slice is for JScripts.
  14. 1. Create a .reg file with following and save it as C:\RunOnceEx.reg Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0001] "RunOnceEx"="Notepad.exe" 2. Create following String Value entry under RunOnce key: ValueName = RunOnceEx and its value as Regedit /s C:\RunOnceEx.reg OR Alternatively to achieve the same create another .reg file as below and run it by double clicking on it. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce] "RunOnceEx"="Regedit /s C:\\RunOnceEx.reg" The RunOnce reg entry when executed, after all RunOnceEx entries are executed(if any), will create entry to run Notepad in RunOnceEx and will not be initiated till next logon or reboot. At the next logon/reboot, RunOnceEx entries will be enumerated and as a result Notepad will fire up.
×
×
  • Create New...