Jump to content

someuser77

Member
  • Posts

    27
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Israel

Everything posted by someuser77

  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. all done. thanks to everyone for your help!
  11. 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.
  12. 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?
  13. 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?
  14. still i get the same error.
  15. [Version] Signature = $Windows NT$ [DefaultInstall] UpdateInis = AddShortcut [AddShortcut] setup.ini, progman.groups,, "group2=""%01%\testzone""" setup.ini, group2,,"""Readme"",""""""%01%\README.TXT""""""" this will make a shortcut in the inf location in the the 'testzone' dir to the file readme.txt located in the inf directory. am i right?
  16. thank you for your relpy. when i install your inf i get the same error as befor: Installatin Failed. that is correct.
  17. [version] signature=$chicago$ [DefaultInstall] UpdateInis=AddShortcut [AddShortcut] setup.ini, progman.groups,, ""group2="%24%""" setup.ini, group2,,"""Readme"",""""""%24%\readme.txt""""""" when i run this i get an error: Windows 2000 SP4 what am i doing wrong?
  18. windows 2000 SP4. thats why i posted in the windows 2000 forum. but it shouldnt make any difference. does it?
  19. when i try to install the inf file i get the error:
  20. okay. .vbs and .inf are bouth silent, right? so we know how to make a .vbs, now how do i make a .inf that will create a shortcut?
  21. again, in that case i will have 2 files: .bat and .exe i am trying to make only one .bat file that will do the job. i know i can make one .exe file that will hold all the files i need, but i wouldnt want users to think they have to install something when they dont.
  22. its a batch script designed to make a shortcut. or so it says. thanks for the code gunsmokingman, but i will have to add a .vbs file to the batch, i'll do so if theres no other way. Aegis, the line opens a wizard that requires user input. losing the point of the script. what i did manage to do is to find this article about making shortcuts, but i cant get it to work. [Version] signature="$CHICAGO$" [DefaultInstall] UpdateInis=Addlink [AddLink] setup.ini, progman.groups,, "group1=""c:\""" setup.ini, group1,,"""thisIsMyShortcut"",""explorer.exe"",,,,,""explorer.exe"""
  23. thank you for your reply, but again: i will need to carry around 2 files: the .bat and the .exe. no fun. the point is to make one file, that will generate what it needs. do you think it can be done? i found something over here but the code is too messy for me to read. do you think it can be rewritten to somehting?
×
×
  • Create New...