Author | Message | Time |
---|---|---|
Dyndrilliac | Ok, I want to make a Batch file so when it's run, it changes the settings of the folder it's in so you can't see hidden or system files. Can anyone help? | November 27, 2003, 6:41 AM |
Tuberload | Since no one is answering your question I will throw in my two cents. First I don’t think you can hide system/hidden files in just a specific folder, but I honestly do not know. Second, batch scripts are very simple to learn and use so I would recommend finding a manual or something and trying to figure it out on your own. | November 28, 2003, 10:20 AM |
Hostile | I'll go with Tuberload on the not sure if its possible, well through batch scripting anyways. At the same time I think if it is possible, theres information out there to help you do it. It shouldn't be hard at all to get the folder its in, just get the location of the batch file youre running and then set it to a variable for the location to change, but then im not sure how to change it for viewing hidden/system files. Edit: Whoever posts next (or you need to look into this yourself dyn.) start checking DOS commands to do something like that, thats basically your only way of accomplishing something like this, iirc. | November 28, 2003, 7:55 PM |
Kp | Why hasn't anyone suggested making a little command line executable to do what he wants? I'm almost certain it'll be some obscure registry change, which should be easy to make with a console app once you know what you're changing. | November 28, 2003, 9:18 PM |
iago | I actually think this is stored in desktop.ini in each folder, but I could be wrong. | November 28, 2003, 9:26 PM |
iago | [quote author=Tuberload link=board=5;threadid=3894;start=0#msg32210 date=1070014832] Since no one is answering your question I will throw in my two cents. [/quote] Note that it had only been up for 2.5 hours, in the middle of the night :P | November 28, 2003, 9:26 PM |
Adron | You can modify the registry from a .bat file using regedit <file.reg> with some switch to make it silent. | November 29, 2003, 4:42 AM |
Skywing | [quote author=Adron link=board=5;threadid=3894;start=0#msg32345 date=1070080920] You can modify the registry from a .bat file using regedit <file.reg> with some switch to make it silent. [/quote] Windows Server 2003 also includes a handy command-line registry editor, reg.exe: [quote]C:\WINDOWS>reg /? REG Operation [Parameter List] Operation [ QUERY | ADD | DELETE | COPY | SAVE | LOAD | UNLOAD | RESTORE | COMPARE | EXPORT | IMPORT ] Return Code: (Except of REG COMPARE) 0 - Successful 1 - Failed For help on a specific operation type: REG Operation /? Examples: REG QUERY /? REG ADD /? REG DELETE /? REG COPY /? REG SAVE /? REG RESTORE /? REG LOAD /? REG UNLOAD /? REG COMPARE /? REG EXPORT /? REG IMPORT /? [/quote] Note that you give everything as command-line parameters here, and don't need to use .reg files. | November 29, 2003, 5:46 AM |
Tuberload | [quote author=iago link=board=5;threadid=3894;start=0#msg32290 date=1070054819] [quote author=Tuberload link=board=5;threadid=3894;start=0#msg32210 date=1070014832] Since no one is answering your question I will throw in my two cents. [/quote] Note that it had only been up for 2.5 hours, in the middle of the night :P [/quote] Lol, for some reason I thought it had been up for a day or so, and no one was answering do to it's simple nature. :-[ | November 29, 2003, 10:37 AM |