Jump to content

someuser77

Member
  • Posts

    27
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Israel

About someuser77

someuser77's Achievements

0

Reputation

  1. I use Windows 2000 SP4 and after playing around with the registry i discovered that the "Run As" context entry is missing, even when i hold shift key. The last thing i remember is editing the LaunchPermission in HKEY_CLASSES_ROOT\AppId\{D68BD5B2-D6AA-11d0-9EDA-00A02488FCDE} but restoring the key didnt work so i guess i'm missing something. how can i restore it? edit: one should add "Extended"="" to HKEY_CLASSES_ROOT\exefile\shell\runas and @="\"%1\" %*" to HKEY_CLASSES_ROOT\exefile\shell\runas\command in order to get it back for exe files. Windows Registry Editor Version 5.00 ;you can delete 'Extended' to always show this context entry [HKEY_CLASSES_ROOT\exefile\shell\runas] "Extended"="" [HKEY_CLASSES_ROOT\exefile\shell\runas\command] @="\"%1\" %*"
  2. thank you for your replies. i am afraid your methods returns the path, i need only the last dir: c:\dir\subdir\ -> subdir and not c:\dir\subdir or \dir\subdir.
  3. hello. i need to retrieve the current directory name from a batch file in windows 2000. for example: if i run the batch file in c:\dir\subdir (c:\dir\subdir\mybat.cmd) i will have a variable that holds the name "subdir" as its the location of the file. thanks!
  4. when i open Partition Magic 8 i see my Maxtor 6Y120P0 drive in a yellow color and the file system marked as "other": but my Windows 2000 Disk Management shows healty: under windows i can read and write to the partition, so what is wrong? what does Partition Magic wants? Thanks to ImageShack for Free Image Hosting
  5. yes, but is there a way to write the "1" as a variable, so it can be processed in a loop?
  6. looks good! but how do i work with it next? echo %strArrayName.%strArrayNumber%% how do i output strArrayName.strArrayNumber?
  7. for %%G in (%location%\*.txt) do ( set /a count+=1 call :exec1 %%~nG echo %%~nG ) goto :continue1 :exec1 echo %count% set mapArray[%count%]=%1 goto :end :continue1 :end this is what i have so far, the idea is to point to an array number (mapArray[1]) and return the file name. i will ask for a number input, and return the file name.
  8. cant i write a variable name using a variable? like in PHP?
  9. i would like to create arrays in a batch program, i added all the data as: arr[1] arr[2] arr[3] ... but the output is the tough part, i used: set n=2 echo %arr[%n%]% but that didnt work. is there anything i can do? my idea is to write a file list into that array, then pointing to one of the files. i really dont want to create temp files for this job.
  10. thank you for your help, but i need to get access to the windir, unfortenately this is not working: Set WSHShell = WScript.CreateObject("WScript.Shell") WSHShell.Environment("Volatile").Item("windir") it returns a blank line.
  11. when i run the .inf as the system Administrator its working. when i run it as a Power User its not, what can i do?
  12. i run Windows 2000 SP4 MSIE 5.0 and FF 1.0.3 Kaspersky 5.0.121 when i right click -> install the inf file above i get the error: Installation Failed. i run it as a Power User. anyting else you need to know?
×
×
  • Create New...